Skip to content

Latest commit

 

History

History
86 lines (59 loc) · 4.21 KB

README.md

File metadata and controls

86 lines (59 loc) · 4.21 KB

go-ecommerce-with-auth

Project Description

This is a simple e-commerce project with authentication and authorization. The project is built with Go and MongoDB.

Developing (Run the project at watch mode)

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

2. Install dependencies

go get

3. You may need to verify go mod is enabled

run.sh

4. Run the application

make -f Makefile_linux start

5. Open the browser and go to

http://localhost:4000

Step by step init new project

Installations:

  • chi v5:
go get github.com/go-chi/chi/v5

common problems and how to solve them:

verify go mod is enabled:

go env -w GO111MODULE=auto

Docs I Found useful for this course:

maybe implement - https://stackoverflow.com/questions/21151765/cannot-unmarshal-string-into-go-value-of-type-int64