This project will provide an API for storing and retrieving information about contacts. These contacts will be stored in a MongoDB database and all interaction will happen through the API.
- The database stores the following for each contact: firstName, lastName, email, favoriteColor, and birthday.
- Node project successfully connects to MongoDB.
- API routes perform GET, POST, PUT, and DELETE.
- API Documentation using Swagger.
- API is published to Render and can be called from external sources.
- controllers/contacts.js - Contains the functions of the different endpoints.
- database.js - Contains the connection to the contacts API using MongoDB.
- routes/contacts.js - Call endpoints.
npm iInstall the necessary dependencies mentioned in the package.json if they are not installed.npm startConnects to database using localhost 3000
npm run swaggerCreates the documentation using SWAGGER