Skip to content

nikicivan/ecommerce-with-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

E-commerce made in Golang, React and Next

This is repository for simple boilerplate for the the e-commerce site made in Golang, React, Next and Stripe.

Backend

Setup instruction

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published