This is a Rest API build using MERN stack. Here I have build a complete backend using express.
First, duplicate the .env file into a new file named .env.local. Update the value of your OpenAI API key there.
The first time you are running this project, you will need to install the dependencies. Run this command in your terminal:
npm installTo start the app, run:
npm run devLocal is Alive endpoint - http://localhost:3000/api/v1
Postman Collection to test the API - https://syed-7533984.postman.co/workspace/SYED's-Workspace~0ee95e99-9bda-494b-8858-b574652a65c6/collection/46485671-070b4165-34b6-4541-9e7c-2f09feaca638?action=share&creator=46485671&active-environment=46485671-c9853615-3af4-4df4-9cf7-2a8fcb0c41ca