Windows
python -m venv venv && venv\bin\activate && pip install -r requirements.txt
Linux/Mac
python3 -m venv venv && source venv/bin/activate && pip3 install -r requirements.txt
2. Create .env file and copy all variables from .env_example to it and customize your self (if needed)
Windows
python app.py
Linux/Mac
python3 app.py
sudo apt install -y postgresql postgresql-contrib
sudo -u postres psql
CREATE DATABASE database_name WITH template = template0 ENCODING 'UTF8' LC_CTYPE 'C' LC_COLLATE 'C';
CREATE USER user_name WITH PASSWORD 'password';
ALTER ROLE user_name SET client_encoding TO 'utf8';
ALTER ROLE user_name SET default_transaction_isolation TO 'read committed';
ALTER ROLE user_name SET timezone TO 'UTC';
Note: If you use another timezone in your project, replace 'UTC' with yours.
GRANT ALL PRIVILEGES ON DATABASE database_name TO user_name;
\q