An application that fetch data (Questions and answers) from Firebase and display them to the user allowing him to play Trivia.
- FireBase - RealTime Database that stores the questions in JSON Format.
- QuestionGenerator - .NET application which reads a specific format written by the user and generates a JSON format suitable for importing to Firebase.
- QuizApp-WebApp - Web Application written with HTML + JavaScript that displays the questions from Firebase allowing the user to play.
- QuizApp-Android - Android Application written in Java that displays the questions from Firebase allowing the user to play.
In order to make everything to work, you will need to setup your own database in firebase:
- Go to Firebase Console.
- Create new project.
- Navigate to Develop -> Database.
- Create Real Time Database. (not cloud firestore).
- While you're at Develop->Database page, make sure you're pointing to "RealTime Database".
- Click on "Rules" tab and edit the
read
property to betrue
. This is mandatory step because questions will not be loaded if this set tofalse
. - Click the
Data
tab. To import JSON format which contains your questions, click on the 3 dots menu at the right side and choose "import JSON". - The default root name that contains all the questions is
rootName
. If you decide to change it, it must be the same in all the components: Andrid app, WebApp, JSON root name.
This Project is inspired by https://github.com/jrue/JavaScript-Quiz by Jeremy Rue. The QuizApp-WebApp is based on Jeremy's project.
Example for usage, can be found in the following links. The example is for Human Computer Interface course.