This repos is all the source code to run the Argent bank webApp.
- NodeJS
- NPM and/or Yarn
- MongoDB Community Server
- Clone the repository of the api on 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!
- First Name:
Tony
- Last Name:
Stark
- Email:
[email protected]
- Password:
password123
- First Name:
Steve
, - Last Name:
Rogers
, - Email:
[email protected]
, - Password:
password456
-
Clone the repository of front-end app on your computer.
-
Open a terminal window in the cloned project
-
Run the following commands:
# Install dependencies
npm install
# Start local dev
npm start
Your server should now be running at http://locahost:3000
To learn more about how the API works, once you have started your local environment, you can visit: http://localhost:3000/api-docs
I was not completely satisfied with the correction requested by the mentor. In fact, there is already some requests, to get information, and the http verb used for requests is "POST". But if we have to send the accountId or transactionId in a query param, these informations were visible in the url and it's not secure, especially for a banking API. With "POST" method, the parameters were hidden in the body. So, in a real situation, I would go to the client’s security department to discuss with them the methods to use.