To run the application, follow these steps for both the frontend and backend:
-
Install Dependencies:
npm install
-
Start the Development Server:
npm run dev
-
Backend Environment Variables:
Create a
.env
file in the backend directory with the following variables:OPEN_AI_SECRET=your_open_ai_secret OPENAI_ORGANIZATION_ID=your_openai_organization_id MONGODB_URL=your_mongodb_url PORT=your_port_number COOKIE_SECRET=your_cookie_secret JWT_SECRET=your_jwt_secret
Replace
your_open_ai_secret
,your_openai_organization_id
,your_mongodb_url
,your_port_number
,your_cookie_secret
, andyour_jwt_secret
with your actual configuration values. Remember that theyour_open_ai_secret
is the paid version of GPT-3.5-turbo -
Screenshots: