An API that simulates ATM operations. It was built using Express.js.
-
Clone this repo to a local directory.
-
On an instance of PostgreSQL, create the user
atm
and the databaseatm_db
, granting its privileges toatm
user. -
Import the sample data into the database.
psql postgres://atm:r34WG7VcdfJvN4WplbWYHEk@localhost:5432/atm_db < sample_db.sql
You may edit the connection string to connect to a remote host and/or change user password. However, if you do so you must also edit the connection string in
src\controllers\db-controller.js
. -
npm install
-
node server.js
After this, it is just executing requests.
Please check endpoints.md
for details.
npm install mocha -g --save-dev
npm install chai request --save-dev
- Run
mocha
on project root directory
Before testing, ensure the database is populated and node server is running.
- Implement initial working version of API
- Document API installation and usage
- Implement automated tests
- Ensure safety on concurrent database operations
- Increase test coverage
- Get rid of stray TODOs across the codespace
- Add meaningful code comments