Projet IA Henallux Bloc 3 Option Data Science
The generated documentation is available here
Create a file .env
and add all environment variables that are in sample.env
to it with valid values.
More information about available environment variables can be found below.
Run python -m venv venv
Activate de venv with venv\Scripts\activate
on Windows and source venv/bin/activate
on Linux
Run pip install -r requirements.txt
Run flask init_db
Run flask run
or py run.py
Email: [email protected] Password: test
Some configuration options can be provided via environment variables. They will override default configuration values.
Either developement
or production
.
In production, please use a Production Server such as waitress
Must be run.py
.
The secret key will be used for securely signing the sessions cookie.
Please, do NOT use the default secret key for production environment.
Default= DEV-t0_R3Pl4C5
The URI to connect to the database. Default is a SQLite database store in the basedir of the project
All Dialects available: Here
The form of the URI is: dialect+driver://username:password@host:port/database
Default = "sqlite:///" + os.path.join(basedir, "app.db")
If you need to track modifications of objects. This requires extra memory.
Default = False
The list separate by ;
of all users's email addresses who are admins.
Example: "[email protected];[email protected]"
Run pdoc -d google -o docs projet
Use Docker: docker-compose up -d
.
The app will run on port 5747.
It will use a mariadb container to store the database. You can access manage database on web with adminer on port 5748.