This is project a simple version of trivia questions. You can find something similar at http://www.triviaquestionsnow.com or https://trivia.fyi. Basically, you have sets of questions grouped into categories by a common topic. The user can select a category and then answer questions which are validated by the system.
It's integrated with alexa and dialogflow.
The process of building this project is covered in my articles:
- Practicing Domain Driven Design. Part 1: Understanding the problem.
- Practicing Domain Driven Design. Part 2: Dividing the problem.
- Practicing Domain Driven Design. Part 3: Implementation.
To run the project locally you need to integrate with the firebase. You can read about it here
The easiest would be to create firebase-config-dev.json
in the root folder with the following structure:
{
"databaseURL": "YOUR_DATABASE_URL"
"storageBucket": "YOUR_STORAGE_BUCKET"
"projectId": "PROJECT_ID"
}
To deploy the project to firebase functions double check script/firebase
folder and make sure you have all required files and fields there.
To integrate with alexa or dialogflow you need to create new alexa or dialogflow app and import schema from schema
folder.