Banking API sample. (Work-in-progress, not very organized yet).
- User registration and authentication
- Account creation and management
- Deposit and withdrawal functionality
- Transaction history tracking
- Email notification
- Role-based admin control
To run the project, follow these steps:
- Run
make postgresto run the postgres server in docker with the necessary envs. - Run
make createdbto create the DB in postgres. - Run
make migrateupto run the DB migrations. - Now you are ready to use
make serverany time you want to run the server.
To add new migrations:
migrate create -ext sql -dir internal/db/migration -seq <migration_name>