Skip to content

Latest commit

 

History

History
73 lines (46 loc) · 1.16 KB

File metadata and controls

73 lines (46 loc) · 1.16 KB

Gobank

This project is a simple bank CRUD API, written using standard http and sql packages.

Requirements:

  • Fill the config files following the given examples.

  • Make sure to update your docker-compose.yml file to reflect your configurations.

  • reflex (globaly installed) to run the server in development mode:

    go install github.com/githubnemo/CompileDaemon@latest

Start


Install all the dependencies:

    make deps

Start your postgres database:

    docker compose up -d

Start the web server in dev mode:

    make dev

Migrations


  • Create a migration:
    make migrate-create name=<YOUR_MIGRATION_NAME>
  • Migrate up:
    make migrate-up
  • Migrate down:
    make migrate-down
  • Revert changes to a specific version:
    make migrate-goto v=<TARGET_VERSION>
  • Fix a dirty version:
    make migrate-fix v=<TARGET_VERSION>