A quiz app for the Flutter Festival Kathmandu built with Flutter Web on frontend and Appwrite on backend.
Live Preview: https://ffktm2022.codemagic.app
This project needs Flutter installed and Appwrite project configured to run successfully.
-
To install flutter refer to this page. To install appwrite refer to this page.
-
Change the Appwrite project_id and endpoint in
/lib/services/appwrite.dart
. -
Setup database structure in Appwrite project
-
Run
flutter pub get
. -
Build
-
For Android:
flutter build apk
-
For Web:
flutter build web
-
Questions collection
collectionId: questions
fields:
question: string
options: array of string
answer: string
Scores Collection
collectionId: Scores
fields:
userId: string (id of the user who took the quiz)
score: int (total score obtained out of 10)
answers: string (json encoded string of an array [{"questionId": "id", "selected_answer": "answer", "correct": true or false} ...],
phone_number: string (required if we want to distribute prize)
Flutter Festival Kathmandu Quiz App is MIT licensed, as found in the LICENSE file.