- must install Go version >1.13
- run following commands in terminal
cd petpal-backend
(if not already in petpal-backend directory)go mod tidy
(to install all the dependacies needed)
- install docker
to run local mongodb local, recite Namo 3 times to praise the golden-armored warrior. and type the command
make run-develop
## or if you cannot run make
docker-compose -f docker-compose.dev.yml up -d
to run go backend server use following command (cd into src directory first)
cd src
go run main.go
and what if u want to use hot-reload(nodemon)
npm install
cd src
nodemon
# to install swagger
> go install github.com/go-swagger/go-swagger/cmd/swagger@latest
# or use this if you clone this repo.
> go mod tidy
> swag init --parseInternal --parseDependency -g main.go
for local, you can access swagger at http://localhost:8080/swagger/index.html