Skip to content

Latest commit

 

History

History
57 lines (45 loc) · 1.03 KB

readme.md

File metadata and controls

57 lines (45 loc) · 1.03 KB

Flowdrive API

Deploy

  1. Copy .env.example to .env and fill it up. To generate secret keys:

    >>> import os
    >>> os.urandom(24)
  2. Create a venv (or not). Run

    pip install -r requirements.txt
  3. Migrate database:

    set -a; source .env; set +a
    make init-db
    make migrate
  4. Copy contrib/flowdrive_api.service to /etc/systemd/user/flowdrive_api.service

  5. Run systemctl --user daemon-reload

  6. Run systemctl --user enable --now flowdrive_api

Development

  1. Copy .env.example to .env and fill it up. To generate secret keys:

    >>> import os
    >>> os.urandom(24)
  2. Create a venv (or not). Run

    pip install -r requirements.txt
  3. Migrate database:

    set -a; source .env; set +a
    make init-db
    make migrate
  4. Flask run:

    make run

Insomnia Collection

Refer to the Insomnia collection for development