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.
GPL-2.0 License
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.
swig
template engine instead of the default jade
. (That's because I come from Django).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
.
app.js
. Pull requests for cleanup are super-welcome.All versions of the NodeQuiz icon were designed from the wonderful vector icon set from Brankic1979.