Coder Social home page Coder Social logo

online-examination-system's Introduction

online-examination-system

Node

Installation of project dependecies

cd into the project directory and

npm install

Usage

  • Make sure you have table called 'users' with columns ('username', 'password','email') and table called 'admin' with columns ('username','password').
  • Add a username and password in admin.
  • Edit resources/questions.csv file and put your own questions.
  • Add your mysql credentials to server/db.js file.
  • Run server/server.js.
  • Run user/login.html using live server.

What is happening?

  • When server/server.js is started, it creates 'marks' table (if not found) or drops the old 'marks' tables and creates new one (if found).
  • When user/login.html is launched using live serve, it first checks for cookies (login credentials) and validates with server.js ('users' table in mysql), if credentials match, user is taken to user/index.html else you need to login and then if server.js says you are good to go then you will be redirected to user/index.html.
  • When user/index.html is accessed it will first check and validates your credentials using cookies, if something's wrong you will be taken back to login page, or if everything is good it will request server for questions and options to display them to you.
  • Everytime you move to another question the selected option is sent to server to store it in 'marks' table.

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.