thomson2k / enigma

Typescript/React quiz app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enigma quiz

A simple quiz app

Demo

It may take few seconds to run api after 30 min of inactivity

https://enigmatypescript.netlify.app/

Installation

client:

  npm install
  npm start

server:

  npm install
  npm run start

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

ATLAS_URI

API Reference

Questions:

Get all questions and categories

  GET /api/questions

Post question

  POST /api/create/question
Parameter Description Authentication
id Required. Id of item to fetch required

Delete question

  POST /api/deletequestion
Parameter Description Authentication
id Required. Id of question to delete required

Users:

login

  POST /user/login

logout

  GET /user/logout

Get user

  GET /user/user

Get all users

  GET /user/getallusers
Authentication
required

Delete user

  POST /user/deleteuser
Parameter Description Authentication
id Required. Id of user to delete required

About

Typescript/React quiz app


Languages

Language:TypeScript 77.6%Language:CSS 17.4%Language:HTML 5.0%