Bank App Demo API is a lightweight mock server which runs Express.JS / Node.JS to allow a simple database query to a MongoDB cloud database.
If you do not have Node or npm, please go download it here and make sure to install all options including NPM & environmental paths.
Next, clone this project to your machine. Open the bank-app-demo-api folder in your terminal and run the Node command 'npm install'. This will install all the necessary NPM packages for your server to function.
npm install
Once the packages are done installing, run 'npm start'.
npm start
Your server will start, and you should see a notification in your terminal of success. The Express server will run on port 8081 of your localhost. If you visit http://localhost:8081/, you should now see 'Hello World'. This will tell you that the server is running.
The Express server continually runs via the nodemon library. If you would like to end the program, close your terminal or run 'killall -9 node' from elsewhere.
killall -9 node
This mock server allows a user to request account information from a MongoDB cloud database, via the endpoint '/accounts/read'. It is meant to be run in tandem with the project bank-app-demo-ui.
When using the mock server to access the accounts for the demo UI, please initialize the mock server first (or the UI will not have any data to load).