This is a simple e-commerce project with authentication and authorization. The project is built with Go and MongoDB.
make -f Makefile.linux dev_front
make -f Makefile_linux dev_back
- If you want to run only one part of the application in watch mode, you can use the following commands (example In Linux):
make -f Makefile_linux start_back
make -f Makefile_linux watch_front
```
- For more commands, see Makefile_linux or Makefile_win
## Starting From Scratch (Step by step Installaion)
### 1. Clone the repository
```bash
git clone
go get
run.sh
make -f Makefile_linux start
http://localhost:4000
- go mod init github.com/username/projectname
- folder named 'cmd' is the entry point of the application ('src' in java and also others)
- make sure the extentions are working properly, see (golang-extensions-guide)[https://medium.com/backend-habit/setting-golang-plugin-on-vscode-for-autocomplete-and-auto-import-30bf5c58138a]
- chi v5:
go get github.com/go-chi/chi/v5
verify go mod is enabled:
go env -w GO111MODULE=auto
maybe implement - https://stackoverflow.com/questions/21151765/cannot-unmarshal-string-into-go-value-of-type-int64