ATM demo
is a web app that shows a simple ATM. Main features:
- User can see account info.
- User can withdraw money.
- ATM understands denominations and can pay out accordingly.
Tech stack:
- Node.js + Express for api
- Postgres to store data
- Frontend is in React
Prerequisites:
- Make sure you have a Postgres instance running.
- Node 8.x
- Yarn
Setup:
- Clone the repo into a directory.
- Copy
.env.example
to.env
. - Modify
DATABASE_URL
in the.env
to point to your Postgres instance. - Run
yarn
to install dependencies. - Run
yarn test
to see if tests pass. - Run
yarn migrate
to create DB tables. - Run
yarn demo:data
to insert some users and accounts. - Run
yarn develop
to start webpack dev server for frontend and node for api.
App should now be available on http://localhost:3000
.
Heroku