https://github.com/giddyeffects/trivia
Different general knowledge quizzes to exercise your brain. Simple app done using Electron and VueJS (webpack template)
https://github.com/giddyeffects/trivia
electronjs firebase-database vuejs
Last synced: about 2 months ago
JSON representation
Different general knowledge quizzes to exercise your brain. Simple app done using Electron and VueJS (webpack template)
- Host: GitHub
- URL: https://github.com/giddyeffects/trivia
- Owner: giddyeffects
- Created: 2017-08-12T20:33:05.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-29T14:59:30.000Z (almost 8 years ago)
- Last Synced: 2025-04-13T09:12:17.909Z (about 2 months ago)
- Topics: electronjs, firebase-database, vuejs
- Language: CSS
- Size: 187 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# QuizzesApp - Using Electron, VueJS and Firebase
> Different general knowledge quizzes to exercise your brain. This simple desktop app is done using Electron, VueJS and Firebase realtime database
## Download
``` bash
# Clone the git repository to your folder
git clone https://github.com/giddyeffects/triviacd
```## Build Setup
``` bash
# install dependencies
npm install# serve with hot reload at localhost:8080
npm run dev# build for production with minification
npm run build# build for production and view the bundle analyzer report
npm run build --report
```
## Database
### Setup
Create a new [firebase](https://firebase.google.com/) database if you've not done so already.### Config
``` bash
# create a file in src folder called config.js
touch src/config.js
```
``` javascript
/**
* Copy paste this content into the created config.js file
* replace relevant firebase db details
* and save the file
*/
let config = {
apiKey: "",
authDomain: ".firebaseapp.com",
databaseURL: "https://.firebaseio.com",
projectId: "",
storageBucket: ".appspot.com",
messagingSenderId: ""
};
export default config
```
### Upload Samples
Upload the **samples.json** file into your firebase database. You can then add/modify the questions and the updates appear on the client in realtime.
For now this trivia app supports multiple choice and single text based questions. I plan to add multiple checkboxes and a rating system for the total score.
Use the same JSON file to update the DB with your questions, editing as necessary.### Help
Please check the official [firebase docs](https://firebase.google.com/docs/database/web/start) for help on using firebase.## Run
``` bash
# in the root folder execute the command below to run the app
electron .
```## What else can we do?
You can modify the app for:
1. General knowledge questions
2. Aptitude tests
3. Job interview screening questions
4. Quiz games with levels etc