Project requirements specification document: See Project Specs.pdf
The project is deployed at https://node-assessment.herokuapp.com/ if you want to test the api remotely.
See DOCUMENTATION.md for API reference.
- Run
npm install
to install necessary packages - Install npm packages
mocha
andnodemon
globally.> npm install -g nodemon > npm install -g mocha
- Open up a local/remote MongoDB database and replace the connection address (
MONGODB
) in the.env
file - To start the development server:
The server will be available on port
npm run dev
5000
. - All the endpoints are available at
/api
. SeeDOCUMENTATION.pdf
for the full documentation of the API. - Use a REST client like Postman or cURL to make calls to the API
- A barebones react frontend is provided for graphical interaction with the API.
- Install necessary packages for the frontend:
cd client && npm install
- To start the frontend, open up another terminal and run at project root
The client should be available at port
npm run client
3000
- Mentor and student calls can be performed with the client. Use Postman or cURL for performing admin calls.
Make sure you have installed necessary packages with npm install
, installed mocha
and nodemon
globally, and replaced MONGODB
in the .env
with your database URI. Start the development server by running npm run dev
. For running the tests, run either
mocha
or
npm run server-test
A total of 45
tests should pass.