Client
Server
DataBase
API
- DUE TO AZURE SUBSCRIPTION ISSUE, SOME FUNCTION MAY NOT WORK AS EXPECTED.
The project objective was to enhance the existing API by integrating MongoDB, allowing us to create, manage, and retrieve data from a local MongoDB database using a command-line interface (CLI) tool.
Screen.Recording.2023-10-03.at.11.34.16.AM.mov
- Developed a CLI tool in Node.js to seed data into the local MongoDB database and provided the capability to delete data from it.
- Ensured that the CLI tool was source-controlled and included the seed data, enabling team members to seed data by cloning the repository.
![Screenshot 2023-10-03 at 11 13 47 AM](https://private-user-images.githubusercontent.com/132238788/272107412-87e6f049-9bf0-43c7-a8ad-cc15950d79de.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg3ODI0OTMsIm5iZiI6MTczODc4MjE5MywicGF0aCI6Ii8xMzIyMzg3ODgvMjcyMTA3NDEyLTg3ZTZmMDQ5LTliZjAtNDNjNy1hOGFkLWNjMTU5NTBkNzlkZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwNVQxOTAzMTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wYmEzMmNlZDFhODQ1YzIzMDQxOWY4NTM4OTQzOTQ0NmM1MWZjNDlmYThkYWRlM2MzNDJkNDM4MTE3ZjJhMzYxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.wzgZd2bT971Zy9-QFRzssn1WL8l0odOSo5CkHFQuFIE)
- Modified the existing car-finder API to retrieve cars matching specified search criteria from the MongoDB instance.
- Optionally created a frontend page that allowed users to upload cars and view matched cars.
To get started with this enhanced API with MongoDB integration, follow these steps:
- Clone this repository to your local development environment.
git clone https://github.com/HelenaMission/Matching-Car-Finder-with-MongoDB.git
-
Install MongoDB and MongoDB Compass locally using the provided installation guides.
-
Use the developed CLI tool to seed data into the local MongoDB database.
npm run build
npm i -g
- To seed data
mongocli2 seed
- To delete data
mongocli2 delete
- To find data
mongocli2 find
- Open backend folder in terminal and run dev
npm run dev
- Open frontend folder in terminal and run start script
npm start