Argent-bank is a new bank which allows users to consult all their activities on their bank account.
- CSS
- JS
- REACT
- REDUX
- MONGODB
. CHRIS5477
- iNSTALL MONGODB
- INSTALL AND USE API
- INSTALL AND USE APPLICATION argent-bank
- EXAMPLE API AND RESPONSE
To install MongoDB on your computer, I invite you to refer to the documentation on MongoDB. Below, you will find the links of the documentation according to your operating system
To install the API, you need to go to github on the following repository API.
Then Fork this repository and clone it on your computer.
Then , you need to go to the repository cd (PATH-YOUR-REPO-API)
and run the following command npm install
to install all the dependencies for good performance.
To populate your database, you can run this command, you can run this command npm run populate-db
.
Finally use the command npm run dev:server
to run the server.
To install application , you need to run this command yarn
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
For requests API , we use axios
. below , you find severals examples of requests
axios.post(""http://localhost:3001/api/v1/user/login"",
{
"email" : "[email protected],
"password" : "*************"
})
.then(response => console.log(response.data))`
Example response
{
"status": 200,
"message": "User successfully logged in",
"body": { "token": "TOKENEXAMPLE" }
}