Code Monkey home page Code Monkey logo

onlinequiz's Introduction

Introduction

Online quiz system will not contain any lectures or course materials for teaching. It's only purpose is to examine the students by the courses they joined.

There are three main type of user roles: Student, Teacher, Admin (not implemented) and role based access control implemented for each role.

Every user may have multiple roles, but only authorized to single role which is chosen when logging in.

Technologies

Backend

Backend provides an API for the clients, which is built using ExpressJS and MySQL. User authentication is implemented using session cookies.

Frontend

Frontend is built as single page application using ReactJS, and Redux Toolkit is used for complex state management.

How to run the app?

This project is separated under two main folders: backend and frontend folder.

They should run separately to access the app.

Database

This system is built using 8.4.0 - MySQL Community Server

Database connection details are stored as environment variables inside .env file. These values are used in database config file config/db.js.

Database creation and seeding data are automized with utils/seed.js script. To run the script run the following npm script: npm run seed-db. This script drops & creates all the tables.

Backend

Backend can be started using npm start script. Backend is set to use port 5000 by default.

Frontend

Frontend can be started using npm start script. Frontend runs on port 3000 by default.

After setting up all the components, application should be accessible from http://localhost:3000

Login Details

Login requires email and password of users, and there are 5 users in the app by default. All default users has the same password: password

Entity Relationship Diagram

Entity Relationship Diagram

onlinequiz's People

Contributors

cavdarfurkan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.