HUB
Sign inSign up

rusian/apitool

By rusian

•Updated almost 5 years ago

Bank API built with Node.js and Express

Image
0

309

rusian/apitool repository overview

⁠Bank API

Bank API built with Node.js⁠ plus Express⁠.

⁠Running the server

Make sure you have Node.js⁠ installed.

  1. Git clone this repo
  2. Run npm install and wait for the packages to be installed
  3. Run npm start and you are good to go.

The server should start listening on port 5000.

Note: all entries are stored in-memory and are not persisted, so when the server is stopped all data is lost.

⁠Docker-compose

version: '3'

services:
  app:
    image: 'rusian/apitool:latest'
    container_name: apitool
    ports:
      - '5000:5000'
    restart: "always"

⁠API details

RouteDescription
GET /api/Get server info
POST /api/accounts/Create an account, ex: { user: 'Yohan', description: 'My budget', currency: 'EUR', balance: 100 }
GET /api/accounts/:userGet all data for the specified account
DELETE /api/accounts/:userRemove specified account
POST /api/accounts/:user/transactionsAdd a transaction, ex: { date: '2020-07-23T18:25:43.511Z', object: 'Bought a book', amount: -20 }
DELETE /api/accounts/:user/transactions/:idRemove specified transaction

⁠LICENSE

GNU AGPLv3+⁠

Tag summary

Content type

Image

Digest

Size

66.6 MB

Last updated

almost 5 years ago

docker pull rusian/apitool