- Install the required python packages from
requirements.txt
- Create the folder 'Results' in the root directory
- To start the tool run
Run_Constellation.pyand add as parameters the path that links to theConstellation_new_v1.jsonfile - Change verbose in
Constellation_new_v1.jsonto true, if you want to output plot images
- NodeJS (v14 or higher is required for tailwindcss)
- npm
- tailwindcss
- Install with npm ->
npm install tailwindcss
- Install with npm ->
The following package installations can be skipped when installing the packages from the requirements.txt
- Flask
- Install with pip ->
pip install Flask
- Install with pip ->
- SQLAlchemy
- Install with pip ->
pip install SQLAlchemy
- Install with pip ->
- Flask SQLAlchemy
- Install with pip ->
pip install Flask-SQLAlchemy
- Install with pip ->
- python-dotenv
- Install with pip ->
pip install python-dotenv
- Install with pip ->
- flask-oidc
- Install with pip ->
pip install flask-oidc
- Install with pip ->
- Install the required python packages from
requirements.txt
- Run
npm installinside the static directory - Still inside the static directory run
npm run 'buildcss'to create the css/main.css (Needs to run before every build, when the template html files changed.)
- Copy
.env.exampleto.env - Adjust Variables to your needs:
- Change
BASE_FOLDERto an accessible (read and write) directory where the data can be stored - Change
TCAT_DIRto the directory where you tcat repository is stored - Change
TCAT_PYTHON_EXEto the path to your python executable (e.g. virtual environment) where all the needed packages are installed to run tcat - Change
DATABASE_URIto an accessible (read and write) directory where you want to store the database file for the tcat-app - Change
APP_SECRETto a newly generated secret withpython -c "import uuid; print(uuid.uuid4().hex+uuid.uuid4().hex)" - Change
SECRET_KEYto a newly generated secret withpython -c "import uuid; print(uuid.uuid4().hex+uuid.uuid4().hex)"
- Change
- Create the following subfolders inside the
BASE_FOLDERpath:uploads,configsandtcat-data
- To start the app run
app.py
To deploy the app pull the container from https://github.com/epfl-espace/tcat/pkgs/container/tcat.
Replace all items in
<>with your own values.
version: '2'
services:
tcat-app:
image: ghcr.io/epfl-espace/tcat:main
container_name: tcat
ports:
- <your-port>:80
restart: always
environment:
IDP_ISSUER: <idp-issuer>
IDP_AUTH_URI: <idp-auth-uri>
IDP_CLIENT_ID: <idp-client-id>
IDP_CLIENT_SECRET: <idp-client-secret>
IDP_REDIRECT_URI: <idp-redirect-uri>
IDP_USERINFO_URI: <idp-userinfo-uri>
IDP_TOKEN_URI: <idp-token-uri>
IDP_INTROSPECTION_URI: <idp-introspection-uri>
APP_SECRET: <generate-random-secret>
SECRET_KEY: <generate-random-secret>
volumes:
- <custom-path>/docker-data-out:/tcat-app-data
- <custom-path>/docker-data-db:/tcat-app-db