Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
services:fittrackee [2024/06/19 14:39] – willy | services:fittrackee [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | ||
- | |||
- | [[https:// | ||
- | |||
- | ===== Installation ===== | ||
- | |||
- | Detailed instructions can be found [[https:// | ||
- | |||
- | <code bash> | ||
- | useradd -d / | ||
- | </ | ||
- | |||
- | FitTrackee uses Python, so check out [[gentoo: | ||
- | |||
- | python -m venv venv_ft | ||
- | source venv_ft/ | ||
- | pip install fittrackee | ||
- | |||
- | Now, FitTrackee requires PostgreSQL, so you need to install and start it. For reference, and [[https:// | ||
- | |||
- | From now on i assume PostgreSQL is installed and ready. | ||
- | |||
- | Now access your postgres as admin user and create the database: | ||
- | <code bash> | ||
- | psql -U postgres | ||
- | </ | ||
- | |||
- | type in the following SQL statements: | ||
- | <code sql> | ||
- | CREATE USER fittrackee WITH PASSWORD '< | ||
- | CREATE SCHEMA fittrackee AUTHORIZATION fittrackee; | ||
- | CREATE DATABASE fittrackee OWNER fittrackee; | ||
- | </ | ||
- | |||
- | <file - .env> | ||
- | export PORT=5123 | ||
- | export APP_SECRET_KEY=< | ||
- | export APP_LOG=/ | ||
- | export UPLOAD_FOLDER=/ | ||
- | export DATABASE_URL=postgresql:// | ||
- | export UI_URL=https:// | ||
- | export EMAIL_URL=smtp:// | ||
- | export SENDER_EMAIL=xxx@mydomain.com | ||
- | </ | ||
- | |||
- | Ensure this **.env** file is sourced in your **~/ | ||
- | |||
- | As a reference: | ||
- | <file - .bashrc> | ||
- | (only last lines shown) | ||
- | export PATH=$PATH: | ||
- | source venv_ft/ | ||
- | source .env | ||
- | |||
- | </ | ||
- | |||
- | |||
- | |||
- | |||