docker-compose up --build -d
Docker exposes 8080
app port and 5432
pgsql port for convenience
GET /account/ - returns current session user
GET /account/:id - get user by id
POST /account/transfer/:from/:to { amount } - transfer from :from to :to
POST /auth/login { name, password } - login using JWT
POST /auth/register { name, password } - create new user
pg
- pgsql databasmigrate
- initial migrations creatingaccounts
andchanges
tablesseed
- initialize db with some mock dataapp
- nodejs server
Actually no good tests here, but I wrote an interesting benchmark test for different transaction isolation levels.
You can run it locally after change .env
file, you will need to set PGHOST=127.0.0.1