Trying to implement clean architecture with gin framework.
Key |
Value |
Desc |
ServerPort |
:5000 |
Port at which app runs |
Environment |
development,production |
App running Environment |
LogOutput |
./server.log |
Output Directory to save logs |
DBUsername |
username |
Database Username |
DBPassword |
password |
Database Password |
DBHost |
0.0.0.0 |
Database Host |
DBPort |
3306 |
Database Port |
DBName |
test |
Database Name |
JWTSecret |
secret |
JWT Token Secret key |
Command |
Desc |
make migrate-up |
runs migration up command |
make migrate-down |
runs migration down command |
make force |
Set particular version but don't run migration |
make goto |
Migrate to particular version |
make drop |
Drop everything inside database |
make create |
Create new migration file(up & down) |