Skip to content

aazev/simple-bank-api

Repository files navigation

Build

Simple Bank API

Description

Simple bank api with encrypted account and transaction data. Please leave a star if you like the project. Feel free to review my code.

How to run

Install rust:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Run tests:

cargo test

Copy the .env.example file to .env and set the environment variables.

cp .env.example .env

Startup the containers (you may skip if you have a local postgres instance):

make start

Run the server (use -r to run in release mode):

cargo run [-r]

Endpoints

Please refer to the Swagger documentation at:

  • /docs for swagger;
  • /redoc for redoc;
  • /rapidoc for rapidoc;

Only admin can create accounts for now. The application automatically creates an admin account with the following credentials:

{
  "email": "admin@localhost",
  "password": "bank.administrator",
}

!!!!! Jobs and Scopes aren't fully implemented yet. !!!!!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages