- Install air
- Run
aircommand in the terminal - Server is running on
http://localhost:8080
- Install migrate
- Add
DB_ADDRto.env
# Create a new migration
make migration create_users_table
# Run migrations up
make migrate-up
# NOT AVAILABLE ON PROD - Rollback migrations (specify number of steps)
make migrate-down 1
# NOT AVAILABLE ON PROD - Force migration version (use with caution)
make migrate-force 1