freshusername / to-buy-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

to-buy-api

Golang API of shopping list to quickly go through API development in Golang

Tools used:

Useful commands:

  • docker compose build
  • docker compose up
  • docker compose run --service-ports api bash -> to run 'go get {package-name}' commands
  • docker build . -t local-tobuy-api
  • docker run -dp 3000:3000 --env-file .env local-tobuy-api -> running with .env file
  • docker stop local-tobuy-api || docker rm local-tobuy-api
  • DB_USER=stray DB_NAME=tobuy DB_PASSWORD=sezamopen7 DB_PORT=5432 DB_HOST=#dbhost# go test -v ./...

Topics to cover:

  • Goroutines
  • Testing
  • DB access / Gorm

About

License:MIT License


Languages

Language:Go 86.4%Language:Dockerfile 12.2%Language:Makefile 1.5%