This codebase contains the code needed to run the backend for Argent Bank.
Argent Bank uses the following tech stack:
Please make sure you have the right versions and download both packages. You can verify this by using the following commands in your terminal:
# Check Node.js version
node --version
# Check Mongo version
mongo --version
- Fork this repo
- Clone the repo onto your computer
- Open a terminal window in the cloned project
- Run the following commands:
# Install dependencies
npm install
# Start local dev server
npm run dev:server
# Populate database with two users
npm run populate-db
Your server should now be running at http://locahost:3001 and you will now have two users in your MongoDB database!
Once you run the populate-db
script, you should have two users in your database:
- First Name:
Tony
- Last Name:
Stark
- Email:
[email protected]
- Password:
password123
- Token:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1MDg0ZjM2OTY2YTYwMWZiZDg5NzllZSIsImlhdCI6MTY5OTQzNjE1OCwiZXhwIjoxNjk5NTIyNTU4fQ.M-xqsLV2TtMehTuoHtiBSJDDGfQXFL5bYymkBC5g2kU
- First Name:
Steve
, - Last Name:
Rogers
, - Email:
[email protected]
, - Password:
password456
- Token:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1MDg0ZjM2OTY2YTYwMWZiZDg5NzllZiIsImlhdCI6MTY5OTQzNjI4MSwiZXhwIjoxNjk5NTIyNjgxfQ.2Z1ItVIzlST3I1GoeNr0w6KsQixf42AADgIRPAfsneg
To learn more about how the API works, once you have started your local environment, you can visit: http://localhost:3001/api-docs
Static HTML and CSS has been created for most of the site and is located in: /designs
.
For some of the dynamic features, like toggling user editing, there is a mock-up for it in /designs/wireframes/edit-user-name.png
.
And for the API model that you will be proposing for transactitons, the wireframe can be found in /designs/wireframes/transactions.png
.