Giter Club home page Giter Club logo

nodequiz's Introduction

NodeQuiz

A kickass Quiz app built using NodeJS, Express 4 and MongoDB; designed to be run inside an organization, where users can register and take a quiz everyday. Also features a full-fledged admin interface for adding questions.

Features

  1. Fully built using the latest stable versions of Node.JS, Express (4.x) and MongoDB.
  2. NEW! LDAP authentication support.
  3. Beautiful responsive frontend using Bootstrap 3.x and jQuery, including skins.
  4. Standings/Rankings page that shows detailed organization-wide statistics, along with fancy graph charts built using Flot.
  5. Custom admin interface complete with image upload functionality (for questions) using DropzoneJS and detailed userbase statistics using DataTables.
  6. Uses the swig template engine instead of the default jade. (That's because I come from Django).
  7. Well-designed responsive templates for all email communication, thanks to Antwort.
  8. Tons of interesting fraud counter-measures.

Deployment

Make sure the following packages are installed first.

Once these basic packages are installed, DEPLOYMENT TIME!

pm2 is the recommended process wrapper for deploying this app. It is a zero-downtime, automatic-clustering process manager that offers logging, hot-reloading, monitoring and a ton of awesome stuff. Install pm2 globally using the following command -

sudo npm install -g pm2

Once installed, simply execute the command -

pm2 start app.js -i x

where x is the maximum number of processor cores available to the app.

For a ridiculously speedy app, also setup nginx as a reverse proxy on top of the pm2 process. Refer the nginx.conf file in config/ for a highly optimized nginx deployment setup.

All other app-specific configuration is present in config/config.js.

Possible areas of improvement

  1. There's a very small level of code smell - most of the routes are still in app.js. Pull requests for cleanup are super-welcome. [COMPLETED]
  2. Templates are all plain and are not structured into base/inherited templates.
  3. Could probably use a Grunt or Gulp task runner script for continuous deployment.

Credits

All versions of the NodeQuiz icon were designed from the wonderful vector icon set from Brankic1979.

nodequiz's People

Contributors

paambaati avatar

Watchers

James Cloos 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.