This is an EDU-API for the EDU Q&A platform where people can ask questions and answer questions.
- Node.js
- Express --server handling
- JSON Web Token --Authentication
- Bcrypt -- Password hashing
- Passport -- Authentication
- mongoose --Database Management
- nodemon --automatic refreshing of the server
- eslint --code linting
|--app.js
|--controllers
|--questionControllers.js
|--usercontrollers.js
|--model
|--answerModel.js
|--questionModel.js
|--routes
|--questionRoutes.js
|--signupRoutes.js
|--validators
|--questionValidators.js
|--signupValidators.js
|--strategies
|--jwtwebtoken.js
- PORT --
server port number
- MONGO_URL --
database URL
- JWT_SECRET --
Secret key for verifying the token
clone
this repository.cd
into project root directory.- run
npm install
to install all dependencies.(you must have pre-requisites) - Run
npm start
to start the server. - Open up
Postman
and then test out the Endpoints.
https://edu-api-kia.herokuapp.com
https://app.swaggerhub.com/apis-docs/SamuelMabonga/Edu-Question-Api-KIA/1.0.0#/
- Mabonga Samuel
- Nabasirye Loyce
- Nalubwama Mastullah