Skip to content

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

Notifications You must be signed in to change notification settings

farischt/gobank

Repository files navigation

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>

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published