GithubHelp home page GithubHelp logo

gobank's Introduction

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>

gobank's People

Contributors

farischt avatar

Watchers

 avatar

gobank's Issues

refactor app

Refactor application :

scalability over time
readability
SOLID

handle sql transactions

Implement a util method in order to run multiple queries in a single transaction:

  • It must be a reusable function in any other storage component.
  • Update CreateTxnAndUpdateBalance method to use this new function.

auth-system

  • Remove JWT
  • Design cookie & token based authentication
  • hash passwords

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.