Skip to content

Commit 17f932b

Browse files
authored
Chores/prepare release (#100)
* fix: add env template to version control * docs: describe just api command --------- Co-authored-by: sabinem <5292683+sabinem@users.noreply.github.com>
1 parent b5ce9c1 commit 17f932b

3 files changed

Lines changed: 54 additions & 1 deletion

File tree

config/.env.core.tmpl

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Justfile
2+
OPENAPI_URL=http://localhost:8082/openapi.json
3+
CONTAINER_MGR=docker
4+
BUILDKIT_PROGRESS=plain
5+
COMPOSE_PROFILES=
6+
7+
# S3
8+
S3_SERVER=http://garage:3900
9+
S3_PUBLIC_URL=http://localhost:3900
10+
S3_SIGNING_URL=http://localhost:3900
11+
S3_BUCKET_NAME=debates
12+
13+
# Backend
14+
PUBLIC_BACKEND_SERVER=http://backend:8000
15+
CORS_ORIGINS='["http://localhost:3000","http://localhost:5173","http://127.0.0.1:3000"]'
16+
17+
# Frontend
18+
ORIGIN=http://localhost:3000
19+
20+
# Solr
21+
SOLR_URL=http://solr:8983/solr/debates/
22+
SEARCH_PAGE_SIZE=20
23+
24+
# Redis
25+
REDIS_URL=redis://redis:6379
26+
27+
# Mongo DB
28+
MONGO_DB_NAME=debates
29+
MONGO_MEDIA_COLLECTION=debates
30+
MONGO_SUBTITLE_COLLECTION=subtitles
31+
MONGO_SEGMENT_COLLECTION=segments
32+
MONGO_SPEAKER_COLLECTION=speakers
33+
34+
# Whisper Models: "large-v3"
35+
HF_MODEL=large-v3
36+
HF_SPACE_URL=https://katospiegel-odtp-pyannote-whisper.hf.space/
37+
38+
# Files on S3
39+
S3_MEDIA_PATH="media"
40+
TYPE_ORIGINAL="original"
41+
TYPE_TRANSLATION="translation"
42+
43+
# VM Settings
44+
AUTH_DIR=
45+
SSL_DIR=

docs/docs/development/development.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ If you change the solr schema you need to do the following:
5959
!!! warning
6060
Don't reset mongodb as all media is registered there.
6161

62+
### API changes
63+
64+
In case of API changes the openapi spec needs to get regenrated for the docs and for the frontend:
65+
66+
```bash title="regenrate api spec in docs and api client for frontend
67+
just api
68+
```
69+
6270
## 5. Documentation
6371

6472
The documentation is built with MkDocs.

docs/docs/installation/core.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ git clone git@github.com:sdsc-ordes/debates-analytics.git
2626
cd debates-analytics
2727

2828
# 1. Config for the docker compose
29-
cp config/.env.tmpl config/.env
29+
cp config/.env.core.tmpl config/.env
3030

3131
# 2. Config for Application Secrets
3232
cp config/.env.secrets.tmpl config/.env.secrets

0 commit comments

Comments
 (0)