Skip to content

Quickstart

Requirements

With Docker

Without Docker


Installation

First clone the repo

git clone https://github.com/Anttek-io/grigory.git
cd grigory

With Docker

Create .env file and put at least GRIGORY_WEB_PORT

GRIGORY_WEB_PORT=8000

Run the app

docker compose up -d

Without Docker

Create virtual environment and install requirements:

python3 -m venv venv
source venv/bin/activate # for *nix systems
venv\Scripts\activate # for Windows
pip install -r requirements.txt

Create .env file in the root directory.

Add database and Redis connection URLs in the .env file:

DATABASE_URL=postgres://user:password@host:port/db_name
REDIS_URL=redis://host:port

Run migrations:

python manage.py migrate

Create superuser:

python manage.py createsuperuser

Run server:

gunicorn -w 1 --threads 1 --bind 127.0.0.1:8000