Nosh Bank API is a simple banking service for interacting.
API Docs: https://documenter.getpostman.com/view/28806235/2s9Xy2NBXf
- Create Account using Phone numbers.
- Transfer funds across different accounts with different currencies.
- Deposit to account
- Withdraw from account
- View past transactions
- Recieve mails about transactions
- Node.js
- Express.js
- MongoDB
- Mongoose
- Redis [Cache]
- JWT (JSON Web Tokens) for authentication
- EventEmiiter2 (for event/listenr management)
To run Nosh locally, follow these steps:
git clone https://github.com/tdadadavid/bank.git bank
cd bank
npm install
NODE_ENV=development
PORT=4000
# DATABASE
DATABASE_STRING='your db string'
# DATABASE_USER=root
# REDIS/CACHE
REDIS_HOST='Your redis host'
REDIS_PORT='Your redis port'
REDIS_PASSWORD='redis password'
REDIS_TTL='Globa time to live'
# TOKENS
ACCESS_TOKEN_SECRET='crazy secret'
ACCESS_TOKEN_SECRET_LIFE_SPAN='timeline'
REFRESH_TOKEN_SECRET='crazy secret'
REFRESH_TOKEN_SECRET_LIFE_SPAN='timeline'
# EXCHANGE RATES
FIXER_API_KEY='exchange rate api key'
npm run start:dev
docker run dockerrundavid/nosh:v1
localhost:8080/v1.nosh/health
coming soon
https://documenter.getpostman.com/view/28806235/2s9Xy2NBXf