Skip to content

Deepcodepentester/question-api

Repository files navigation

This project is an api project that exposes 4 endpoints to be consumed on the frontend, and can be tested using curl or postman. The api is an interface to a question bank, with it's answers and grouped under 6 categories which are Science,Art,Geography,History,Entertainment,Sports.

To simplify things we be using file based database, sqlite to store the questions needed for this api project.

Clone this repository "https://github.com/Deepcodepentester/question-api.git" to your local machine.

open your terminal and run "npm install" to install all dependencies

Run "npm run dev" to run the script

Run "npm start" to start the api server which will be run "localhost:3000"

"localhost:3000" is your base url from which you will be using to access the 4 endpoints which are: localhost:3000/categories localhost:3000/questions/page/${pageno} localhost:3000/categories/${id}/questions localhost:3000/questions/${id}

Read the documentation for full detail about each endpoint

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •