Task : To enhance the existing(create a new project) backend API for an authentication system to include a new feature allowing users to set their profiles as public or private. Additionally, you should implement functionality to allow admin users to view both public and private user profiles, while normal users can only access public profiles. Steps:
- Navigate to project root directory
- run $:npm install
- Project root folder Contains Postman Collection for all the endpoints. Import it to postman
- Make a new file in root directory as config.env
- Copy all the contents from .env and provide the required variables as mongoDB connection URI, JWT Secret
- Start the server by $:npm run dev