This is repository for simple boilerplate for the the e-commerce site made in Golang, React, Next and Stripe.
- Built in Go, version 1.17.5
- Uses docker images
- Uses docker compose
- Uses Gorm
- Uses MySql docker image
- Uses Fiber framework
- Uses JWT
- Postman documentation
-
Git clone this project in your repository
-
It is necessary to have installed docker and docker for desktop to run docker compose
-
in docker-compose.yaml file set your credentials
-
cd to backend folder and run docker compose up or docker compose up -d if you want to run deamon in the background, it will spin up docker container and images
-
to see loggs run docker ps first to see container_id and than docker loggs containerID
-
to run functions in commands folder, to generates fake data, you have to exec backend image when docker is running and database is connected
-
cd backend from root folder
-
docker compose exec backend sh
-
go run src/commands/folder_name/file_name
-
Open postman and pick endpoint that you want to use
-
If you want to stop docker images run docker composer down