to run the server
npm install
nodemon index.js
create .env file and assign values of
PORT=5000
DATABASE_URL="your mongodb url"
ACCESS_TOKEN_SECRET="any combination of numbers letter"
REFRESH_TOKEN_SECRET="any combination of numbers letter "
To test authentication routes
go to postman/thunder Client
POST http://localhost:8000/api/v1/auth/login
login should be in this format
{
"email":"your username"
"password":"your password"
}
TO register
POST http://localhost:8000/api/v1/auth/register
{
"name":"your name"
"email":"your email"
"password":"your password"
"branch":"your branch"
"domain":"your domain"
}
Questions are in technical.js [edit the question to upload them]
POST http://localhost:8000/api/v1/question/technical
GET http://localhost:8000/api/v1/question/technical
DELETE http://localhost:8000/api/v1/question/technical
Questions are in management.js[edit the question to upload them]
POST http://localhost:8000/api/v1/question/management
GET http://localhost:8000/api/v1/question/management
DELETE http://localhost:8000/api/v1/question/management
Questions are in aptitude.js [edit the question to upload them]
POST http://localhost:8000/api/v1/question/aptitude
GET http://localhost:8000/api/v1/question/aptitude
DELETE http://localhost:8000/api/v1/question/aptitude
Questions are in general_awareness.js [edit the question to upload them]
POST http://localhost:8000/api/v1/question/general
GET http://localhost:8000/api/v1/question/general
DELETE http://localhost:8000/api/v1/question/general
Questions are in sports.js [edit the question to upload them]
POST http://localhost:8000/api/v1/question/sports
GET http://localhost:8000/api/v1/question/sports
DELETE http://localhost:8000/api/v1/question/sports