Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 603 Bytes

File metadata and controls

25 lines (18 loc) · 603 Bytes

How to run?

  • Install air
  • Run air command in the terminal
  • Server is running on http://localhost:8080

DB Migrations

  • Install migrate
  • Add DB_ADDR to .env

Migration Commands

# 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