Update readme
This commit is contained in:
parent
750683fb5c
commit
b31ef06ec0
21
README.md
21
README.md
@ -1,24 +1,41 @@
|
||||
# vision-career-backend
|
||||
# vision-career
|
||||
|
||||
Sample `.env`:
|
||||
|
||||
```dotenv
|
||||
DEEPINFRA_API_TOKEN=your-token-here
|
||||
OPENAI_API_KEY=your-token-here
|
||||
OPENAI_PROXY=http://user:password@host:port
|
||||
|
||||
BOT_TOKEN=your-token-here
|
||||
|
||||
SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
SECRET_KEY=secret
|
||||
DEBUG=true
|
||||
```
|
||||
|
||||
Commands:
|
||||
|
||||
```bash
|
||||
docker compose up -d
|
||||
|
||||
KUBECONFIG=clickhouse-kubeconfig.yaml kubectl port-forward svc/clickhouse-clickhouse -n clickhouse 18123:8123
|
||||
|
||||
uv sync
|
||||
|
||||
uv run --env-file .env manage.py migrate
|
||||
uv run --env-file .env manage.py createsuperuser --username stromenko_es --email estromenko@mail.ru
|
||||
uv run --env-file .env manage.py collectstatic
|
||||
uv run --env-file .env manage.py runserver
|
||||
|
||||
uv run --env-file .env manage.py generate_recommended_vacancies
|
||||
uv run --env-file .env manage.py collect_vacancies_from_telegram_messages
|
||||
uv run --env-file .env manage.py runbot
|
||||
```
|
||||
|
||||
Production port-forwards:
|
||||
|
||||
```bash
|
||||
KUBECONFIG=production-kubeconfig.yaml kubectl port-forward svc/qdrant -n qdrant 6333:6333
|
||||
KUBECONFIG=production-kubeconfig.yaml kubectl port-forward svc/main-cluster-rw -n postgresql-cluster 5432
|
||||
```
|
||||
|
||||
Loading…
Reference in New Issue
Block a user