API that will consumed by mj.
Requirement:
1. github.com/Masterminds/glide
2. github.com/mattes/migrate
1. go get git.qasico.com/mj/api
2. run glide install
3. run migration
How to use migration please see https://github.com/mattes/migrate.
Database migrations are on migrations folder, see https://github.com/mattes/migrate.
Example migrating:
migrate -url="mysql://username:password@tcp(127.0.0.1:3306)/project_mj" -path="./migrations" up
migrate -url="mysql://username:password@tcp(127.0.0.1:3306)/project_mj" -path="./migrations" down
Test can be executed by makefile
make test -s
For fixing formating and lint on development mode
make format -s
Completed command just read the help
make
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a merge request :D