This is a backend application for a contact manager built using Node.js, Express, and MongoDB. It provides a RESTful API for managing contacts.
- Create, read, update, and delete contacts
- Retrieve a list of all contacts
- Retrieve a contact by name
- Secure API endpoints with authentication and authorization
- Handle errors and provide appropriate error responses
- Node.js
- MongoDB
- Clone the repository:
- Install dependencies:
- cd ContactManagerBackend
- npm install
- Set up environment variables:
- Create a .env file in the root directory.
- Specify the following environment variables in the .env file:
- PORT
- HOST
- CONNECTION_STRING
- ACCESS_TOKEN_SECRET
- start the server:
- npm run start The server will be running at http://localhost:5001