Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TarekGuesri/quiz-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuizMaker

Description

QuizMaker is a MERN stack application that lets you create quizzes and share them with others.

Technologies used

TypeScript - React - Redux - Express - MongoDB - MUI - Jest

Home Page
Quiz

Live preview: QuizMaker

Installing dependencies

This repo uses Yarn, it is required because I'm using yarn workspaces

yarn

Usage

Before you run the project, make sure to create a .env file in backend/ (Or you can just copy the sample file in the config folder and rename it to config.env)

This is an example how the config file should look

NODE_ENV=development
PORT=5000
# NODE_PATH=./src ts-node ./src/server.ts

MONGODB_URI=YOUR_PRODUCTION_URL
MONGODB_URI_DEV=mongodb://localhost:27017/QuizMakerDev
MONGODB_URI_TEST=mongodb://localhost:27017/QuizMakerTest

The frontend config can be found on frontend/src/config/index.ts

To run the project in development mode, run:

yarn dev

In order to run it in production mode, run this:

yarn start:build

Or you can start it without building it again (In case you made your produciton build already):

yarn start

Linting and Code Quality

To lint all files run:

yarn lint:check

To apply possible fixes, run:

yarn lint:fix

Tests and Test Coverage

The repo uses Jest for unit tests and code coverage on the backend and React Testing Library/Jest on the frontend (Which is provided by create-react-app).

To run tests once, run

yarn test

To run tests once with coverage, run

yarn test:cov

coverage data is stored in ./backend/coverage and ./frontend/coverage directories

About

A MERN stack application that lets you create quizzes and share them with others.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published