This project is part of the OpenClassrooms curriculum and can be found here.
- React 18
- React Router
- Fetch
- Node
- MongoDB
- Docker
This codebase contains the code needed to run the backend for Argent Bank.
- The
docker compose downcommand will allow you to remove old images. - The
docker compose -f "compose.yaml" up -d --buildcommand will allow you to build and run your image. - The
docker compose build --no-cachecommand will allow you to build your image without using cache. - The
docker compose upcommand will allow you to run your image. - The
docker compose down && docker compose build && docker compose upcommand will allow you to delete old images, build new image and run it.
Once the image is run, your server should now be running at http://localhost:3001 and you will now have two users in your MongoDB database!
Argent Bank API 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
mongod --versionMake sure also that Mongo server is running and have added MongoDB bin folder to your environnement variables. You can verify this by executing this command in your terminal:
# Check MongoDB server status
mongosh --eval "db.serverStatus()"- Clone the repository to your local machine.
git clone https://github.com/a-melouk/ArgentBank.git
- Navigate to the backend directory.
cd ArgentBank/backend
- Install the dependencies using npm install.
npm install
- Start the development server with npm start.
npm run dev:server
- Populate the 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 populate-db script is run successfully, you should have two users in your database:
- First Name:
Tony - Last Name:
Stark - Email:
tony@stark.com - Password:
password123
- First Name:
Steve, - Last Name:
Rogers, - Email:
steve@rogers.com, - Password:
password456
To learn more about how the API works, once you have started your local environment, you can visit: http://localhost:3001/api-docs
- Navigate to the frontend directory.
cd ArgentBank/frontend
- Install the dependencies using npm install.
npm install
- Start the development server with npm start.
npm run dev