Skip to content
/ qux Public

Quizz application to better prepare for exams

License

Notifications You must be signed in to change notification settings

apricat/qux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qux

Qux is a quizz application that uses Web Worker Push Notifications to prompt users periodically with questions.

alt text

It relies on a MEAN stack, that is, Mongodb, Expressjs, Angularjs, Nodejs, to support its features.

Prerequisites

You will need nodejs and a mongodb database, as well as a Firebase account to send notifications.

Installation

First checkout the project:

git clone https://github.com/apricat/qux.git

Using a text editor, replace the config.mongodb line in the config-default.js file with your own configuration.

config.mongodb = "mongodb://<dbuser>:<dbpassword>@ds035806.mlab.com:35806/<dbname>";

Save the modified file as config.js.

Navigate to the directory from the command line, and run the npm install command to fetch all required packages.

npm install

Run node server.js.

App listening on port 8080

If the installation was successful, you should be able to access the quizz using your web browser at the localhost:8080 address.

Up and running

Now that the project is installed and running, visit the form page to add questions and possible answers:

http://localhost:8080

Note that you will also need to choose Allow notifications when prompted.

Once your quizz is populated, use cURL to manually trigger notifications and validate that the setup is working:

curl --header "Authorization: key=<PUBLIC_API_KEY>" --header "Content-Type: application/json" https://android.googleapis.com/gcm/send -d "{\"registration_ids\":[\"<SUBSCRIPTION_ID>\"]}"

The <SUBSCRIPTION_ID> is supplied in the JavaScript console within the endpoint, and the <PUBLIC_API_KEY> is supplied through Firebase.

About

Quizz application to better prepare for exams

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published