AGORA-Quiz is a quiz-based mobile application developed as part of the European project AGORA to combat disinformation on climate change. The app enables users to enhance their knowledge and assess their understanding through gamified questions.
This repository contains three main components:
/backend
→ The API developed using Django Rest Framework./android
→ The Android application developed in Android Studio./ios
→ The iOS application developed in Xcode.
The backend of AGORA-Quiz is built using Django Rest Framework and handles user management, question importation for generating the question bank, and endpoint management for communication with the mobile app.
It is highly recommended to create a virtual environment before installing dependencies to keep the project isolated:
cd backend
python -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activate
Once the virtual environment is activated, install the required dependencies:
pip install -r requirements.txt
Next, review the agora/settings.py
file to check for necessary environment variables. Some critical settings are configured via local.env
for security reasons, such as:
- Database configuration (PostgreSQL)
- Domain URL settings
- Other sensitive credentials
Ensure you create a .env
file and fill in the required values before running the application.
After setting up the environment variables, apply the migrations:
python manage.py migrate
Now, you can start the backend server:
python manage.py runserver
The server will be available at http://127.0.0.1:8000/
.
The Android application is developed using Android Studio. The setup process is straightforward, but you must configure the correct API endpoints before running the app.
- Open the
/android
directory in Android Studio. - Allow the IDE to sync dependencies and build the project automatically.
Before running the app, ensure that the backend API URL is correctly set in:
android/app/src/main/res/values/strings.xml
Look for the following key and update it accordingly:
<string name="base_url">http://your-backend-url/api/</string>
Replace "http://your-backend-url/api/"
with the actual backend URL.
Once the API configuration is correct:
- Select a connected physical device or an Android emulator.
- Click Run
▶️ in Android Studio or use the following command:./gradlew installDebug
The application should now be installed and ready for use.
The iOS application is developed using Xcode. The setup is straightforward, but before running the app, you must ensure that the backend API URL is correctly configured.
- Open the
/ios
directory in Xcode. - If dependencies are required, install them using CocoaPods:
cd ios pod install
- Open
AgoraQuiz.xcworkspace
in Xcode.
Before running the app, update the backend API URL in:
ios/agoraquiz/Services/URLs.swift
Look for the following constant and update it accordingly:
let BASE_URL = "http://your-backend-url/api/"
Replace "http://your-backend-url/api/"
with the actual backend URL.
Once the API configuration is correct:
- Select a connected physical device or an iOS simulator.
- Click Run
▶️ in Xcode or use the following command:xcodebuild -scheme AgoraQuiz -destination 'platform=iOS Simulator,name=iPhone 14,OS=latest' build
The application should now be installed and ready for use.
AGORA-Quiz aims to engage citizens and stakeholders in combating misinformation on climate change while fostering education and awareness. The app connects identified knowledge gaps with reliable resources and interactive challenges created by the AGORA community, ensuring a dynamic and participatory learning experience.
AGORA-Quiz is an open-code project, and contributions are welcome! If you would like to contribute, feel free to fork the repository and submit a pull request.
If you encounter any issues or have suggestions, please open a GitHub issue.
Thank you for your interest in improving AGORA-Quiz!
This project is licensed under the European Union Public License 1.2 (EUPL 1.2).
You can find the full text of the license here.
For further information or collaboration inquiries, please contact development[a]ibercivis.es
Thank you for your interest in AGORA-Quiz! Together, we can counter disinformation and promote climate literacy.