Skip to content

Backend service that provides an API for managing and generating question papers.

License

Notifications You must be signed in to change notification settings

cgaswin/QuestionPaper-Generator

Repository files navigation

Question Paper Generator

This project is a part of the assessment for the reelo backend internship.

This project is a backend service that provides an API for managing and generating question papers. It includes functionality to add questions to a database and generate a question paper based on specific criteria.

Project walkthrough

Installation

Clone the repo:

git clone https://github.com/cgaswin/QuestionPaper-Generator.git
cd QuestionPaper-Generator

Install the dependencies:

npm install

Build Project:

npm run build

Run the development server:

npm run dev

Set the environment variables:

cp .env.example .env
# open .env and modify the environment variables

Environment Variables

The environment variables can be found and modified in the .env file.

# Port Number
PORT = # default 4000

# MongoDB Database URI
DB_URI =

# CORS origin
CORS_ORIGIN = # default *

API Endpoints

API DOCS:
GET /api-docs

Health Check route:
GET /api/v1/health

Question Paper Routes:
POST "/api/v1/seed/questions - Seed Questions
POST "/api/v1/questions/add - Add Questions
POST "/api/v1/questions/generate - Generate Question Paper

License

MIT

About

Backend service that provides an API for managing and generating question papers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published