This is the backend service for the miniProject application. It is built with Node.js, Express, and MongoDB.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node.js
- npm
- MongoDB
- Clone the repository:
git clone https://github.com/Aditya-Bajpayee007/miniP.git
- Navigate to the backend directory:
cd backend - Install the dependencies:
npm install
- Create a
.envfile in thebackenddirectory and add the following environment variables:GEMINI_API_KEY="YOUR_GEMINI_API_KEY" SERPAPI_API_KEY="YOUR_SERPAPI_API_KEY" MONGO_URI="YOUR_MONGO_URI" ACCESS_TOKEN_SECRET="YOUR_ACCESS_TOKEN_SECRET" REFRESH_TOKEN_SECRET="YOUR_REFRESH_TOKEN_SECRET" - Start the server:
npm run dev
The server will be running on http://localhost:3000.
The following are the available API endpoints:
/api/image: Image related routes./api/youtube: YouTube related routes./api/auth: Authentication related routes./api/user: User related routes./api/slides: Slide management related routes.