Table of contents
DIAWeb is a web application that allows the user to calculate their risk of suffering diabetes, based on an artificial intelligence powered model. This project is the backend of it, i.e., the API that computes such risk based on a range of biochemical markers.
.github/
: Contains dependabot configuration along with workflow filemysite/
: This directory contains the source code of the projectmysite/
: Common Python files for all the apps, includingssettings.py
andurls.py
myapp/
: App specific files, including test files, models, views and scripts to build and model the neural networkkeras/
: Tensoflow-Keras related scriptsmigrations/
: Database related scriptsutils/
: Diverse utility files
db.sqlite3
: Currently unused since the database is PostgreSQLmanage.py
: Entry point to run the project.
.gitignore
: Folders not to include in the repositoryLICENSE.md
: MIT license of the projectCODE_OF_CONDUCT.md
: Behavioural guidelines for contributorsREADME.md
: A briefing of the project and how to run itSECURITY.md
: Briefing of the security policydevserver.sh
: Boot file to run the projectinit_supabase.py
: Script to initialize supabase databaserequirements.txt
: List of Python dependencies of the project
To create a virtual environment, navigate to the project directory and run the following command:
python3 -m venv venv
This will create a new virtual environment in a folder named venv
.
To activate the virtual environment, use the following command:
On Windows:
venv\Scripts\activate
On Unix or MacOS:
source venv/bin/activate
Once the virtual environment is activated, you can install the project's dependencies using the requirements.txt
file. Run the following command:
poetry install
This will install all the necessary packages for this project.
To run the project, navigate to mysite/
and then run
python manage.py runserver
If you have any request or inquiry, feel free to contact me at [email protected]