API (Backend For JS Quiz App)

image

Description :

This is a collection of APIs used as a backend for my JS Quiz app. These APIs perform GET,POST,PUT and DELETE operations and thus help the admin to add,delete,update & create questions. It also has API to create an entry on scoreboard and get all scores.

How It's Made:

Tech used: Node.js,Express.js,Mongodb;

I kept the front end quite simple without any frameworks involved. I.e, using Html, Css & Vanilla Js. Backend is built on Node.js using Express.js framework. Mongodb is the database used and querying the database felt really easy and simple.The app lets users attend JS quiz and test their knowledge. The admin section let's them add new questions to the quiz, edit the existing ones and delete them too. The ones who want to enter their scores on scoreboard can opt for that and they can see where they stand among their fellow devs.

Optimizations

This could be extended with APIs for questions of laguages other than JS too!

Lessons Learned:

Server side validation was a great area of learning for me in this case. I figured that testing APIs with postman & testing them with JS client needn't produce the same errors!