đ¤ Backend is runned by Flask API (Python) đ¤
đ¤ Frontend is designed Android App (Android Studio) đ¤
- Create env python by Conda
- Install Anaconda (or Miniconda) follow by instructions
- Create new env and install libraries to run Backend Sever
git clone https://github.com/ngnambka00-github/quiz_game_android.git
cd quiz_game_android/Server/
conda create -n server python=3.7.9
conda activate server
pip install -r requirement.txt
2.1 Import Database to MySQL Workbench
- Instruction for import DB (Link)
- Create file
.env
bycp template.env .env
, then filling password database to file.env
:
app.config["MYSQL_DATABASE_USER"] = "..."
app.config["MYSQL_DATABASE_PASSWORD"] = "..."
app.config["MYSQL_DATABASE_DB"] = "quiz_game"
app.config["MYSQL_DATABASE_HOST"] = "localhost"
- Open folder Server by Pycharm or VS Code
- Open Terminal and run commands
export PYTHONPATH=./
python3 main.py
- When server run, It looks like as. Pay attention and the 2nd line Running on ... (It may be different on others) to copy to Android app.
- Copy url in 2.2 to file
API_URL = "http://192.168.1.14:5000/"
1ī¸âŖ Nam Nguyen Van 20182698
2ī¸âŖ Thi Nguyen Viet 20182798
3ī¸âŖ Hoa Pham Thai 20182533
4ī¸âŖ Chung Tran Van 20182388
- Retrofit. A library for creating request between client and server.
_/īš\_
(Ō`_´)
<,ī¸ģâĻâ¤â Ō â â đ
_/īš\_
```YY