The GlucoQuest Backend powers the interactive features of the frontend by fetching data, managing APIs, and supporting ML tools. Developed in partnership with Dexcom through PilotCity, it provides real-world backend experience using modern frameworks and deployment tools.
- Support frontend with dynamic and interactive content
- Enable AI-powered quizzes and feedback
- Practice backend architecture and API design
- Provide a prototype backend for real-world use
- Serve quizzes, flashcards, and game and leaderboard data
- Handle user inputs and track progress
- Manage content delivery for games
- Evaluate answers using AI
- Provide instant responses to users
- Track user progress and interactions
- Lightweight and stateless sessions
- Language: Python (Flask)
- Hosting: Local / AWS
- Database: SQLite3
- CI/CD: GitHub Actions
Quick steps that can be used with MacOS, WSL Ubuntu, or Ubuntu; this uses Python 3.9 or later as a prerequisite.
- Open a Terminal, clone a project and
cdinto the project directory. Use adifferent linkand name fornamefor clone to match your repo.
mkdir -p ~/nighthawk; cd ~/nighthawk
git clone https://github.com/vibha1019/glucoquest_backend.git
cd glucoquest_backend- Install python dependencies for Flask, etc.
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt-
Prepare VSCode and run
- From Terminal run VSCode
code .-
Open Setting: Ctrl-Shift P or Cmd-Shift
- Search Python: Select Interpreter.
- Match interpreter to
which pythonfrom terminal. - Shourd be ./venv/bin/python
-
From Extensions Marketplace install
SQLite3 Editor- Open and view SQL database file
instance/volumes/user_management.db
- Open and view SQL database file
-
Make a local
.envfile in root of project to contain your secret passwords
# User Defaults ADMIN_USER='toby' ADMIN_PASSWORD='123Toby!' DEFAULT_USER='hop' DEFAULT_PASSWORD='123Hop!'
- Make the database and init data.
./scripts/db_init.py
-
Explore newly created SQL database
- Navigate too instance/volumes
- View/open
user_management.db - Loook at
Userstable in viewer
-
Run the Project
- Select/open
main.pyin VSCode - Start with Play button
- Play button sub option contains Debug
- Click on loop back address in terminal to launch
- Output window will contain page to launch http://127.0.0.1:8520
- Login using password
- Select/open