paambaati / nodequiz

A kickass Quiz app designed to be run inside an organization - users can register and take a quiz everyday. Also features a full-fledged admin interface for adding questions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A kickass Quiz app designed to be run inside an organization - users can register and take a quiz everyday. Also features a full-fledged admin interface for adding questions.

License:GNU General Public License v2.0


Languages

Language:JavaScript 98.7%Language:CSS 1.3%