Capstone Project of a Backend Go Server.
To help our users avoid the hassle of deciding what food to order, we want to create a Food Playlist! We need a beautify UI where users can input food preferences, and based on such preferences generate a ""playlist"" of food deliveries. For example, a user might want to eat halal Hamburgers, and the user wants a hamburger delivered every Thursday at 2pm. The system would then generate a ""playlist"" of different hamburger dishes from various restaurants such that each Thursday at 2pm the user receives a hamburger without any intervention. The user should be able to pause the playlist if they are traveling etc.
- Ensure Golang is install.
- Ensure golang-migrate is install.
brew install golang-migrate
- Run the following cmd for setup
make start-and-migrate
- Start Backend Server
make server
Docker replacement
brew install docker docker-compose
brew install colima
colima start
Install SQLC
https://docs.sqlc.dev/en/latest/overview/install.html
Install Go Mock https://github.com/uber-go/mock
go install go.uber.org/mock/mockgen@latest
Add Path
nano ~/.zshrc
export PATH=$PATH:~/go/bin
- make postgres-image (download postgres image)
- make postgres (start container)
- make createdb (make dropdb)
- make sqlc (if sql files are not generated)
- make migrateup (make migratedown)
- make test