Skip to content

thomson2k/enigma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published