Skip to content

creaper9487/2025-AI-glucose

 
 

Repository files navigation

2025-AI-glucose

Pre-installation

Installation

  • Windows: Run batch\install.bat.

  • Linux/macOS: From the project root directory, run:

    npm install -g pnpm
    cd glucose-FE
    pnpm install
    cd ../glucose-BE
    pip install -r requirements.txt

    If you encounter an externally-managed-environment error during pip install -r requirements.txt, create a virtual environment (venv) and install the dependencies within it.

Run server

  • Windows: Run batch\server.bat.

  • Linux/macOS: From the glucose-BE/glucoseBE directory, run:

    python3 manage.py migrate
    python3 manage.py runserver 0.0.0.0:8000

Test server

This process will delete the existing database and restart the server.

  • Windows: Run batch\test-server.bat.

  • Linux/macOS: From the glucose-BE/glucoseBE directory, run:

    rm db.sqlite3
    python3 manage.py migrate
    python3 manage.py runserver 0.0.0.0:8000

Run web demo

  • Windows: Run batch\web.bat.

  • Linux/macOS: From the glucose-FE directory, run:

    pnpm dev --open

Run Android demo

  1. Download the APK from releases and install it.

  2. Make sure your phone and computer are on the same network.

  3. Run the server.

  4. Open the app and enter the IPv4 address shown in the server terminal into the start-up AlertDialog to connect.

About

A Glucose Calculator with some AI assist feature(using ChatGPT)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 39.1%
  • Python 24.6%
  • Kotlin 11.5%
  • C++ 6.5%
  • JavaScript 5.6%
  • CMake 5.3%
  • Other 7.4%