The simple todo web application written by Go programming language.
- golang-migrate
- You can install from here
- sqlc
- You can install from here
- gomock To setup gomock after git clone this project install gomock inside terminal
go install github.com/golang/mock/mockgen@v1.6.0
and append this code snippet in your .zshrc
file
# GOMOCK
export PATH=$PATH:~/go/bin
after that restart your terminal or run source ~/.zshrc
And you need MySQL in your local machine.
You can use make commands for your local development.
make {KEYWORD} down below
- createdb
- create database for application
- dropdb
- drop database for application
- migrateup
- migrate database for application
- migratedown
- rollback migration for application
- sqlc
- auto generate model and db query from SQL
- mock
- auto generate mocking features for test environment
- test
- run all tests
- server
- start the application