QaBot is a StachOverflow like online question-answer platform with minimal features.
QaBot API is an API's collection which can be used to make the Backend of any Fullstack Application. These are the folllowing features in the given API's
- Create a User
- Post a Question
- Post a Answer to the existing question
- Clap on the answer(upvote)
- Auhtentication and Role based Access to the StackHolders
To work with the api you must have to install the following:
- NodeJS - Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
- MongoDB Server - NoSql Database and server
- Postman - API development environment
Before doing anything you have to clone or download(and unzip) the project folder, open terminal and navigate to the project folder and run:
npm install
This will install all the dependencies required by the project.
To start using this API, start your local database server, open terminal and navigate to the project folder and run:
npm run start
If an error occur, check your database server or check if you have installed the prerequisites correctly.
If there is no error, open Postman and create and send a new get request to:
http://localhost:3000/
Expected Output:
{
message: "Welcome to QaBot..."
}
Firstly, you have to create a new user for working with the API.
Send a POST
request to:
http://localhost:3000/api/auth/register
- TODO