Run locallyLokálny beh
Good for development and debugging. Follow the full guide in Local Install. Vhodné pre vývoj a ladenie. Pokračuj podľa návodu Lokálna inštalácia.
Clone the source, pick what you want to change, and deploy your own build. Works the same whether you run locally or on a server. Naklonuj zdroj, zmeň čo chceš a nasaď vlastný build. Funguje rovnako lokálne aj na serveri.
git clone <repo-url> flowspace
cd flowspace
git checkout main
If you plan to contribute back, fork the repo on GitHub first, then clone your fork and add the original as upstream:
Ak plánuješ prispievať, najprv si projekt forkni na GitHube, potom naklonuj svoj fork a pridaj originál ako upstream:
git clone git@github.com:<your-user>/flowspace.git
cd flowspace
git remote add upstream <original-repo-url>
git fetch upstream
Good for development and debugging. Follow the full guide in Local Install. Vhodné pre vývoj a ladenie. Pokračuj podľa návodu Lokálna inštalácia.
Fastest way to production-like environment. See Docker for env and server prep. Najrýchlejšia cesta k produkcii-podobnému prostrediu. Pozri Docker.
For a private deployment or a thesis/course fork, these are the typical places you touch. Pri privátnom nasadení alebo pri forku pre predmet/prácu najčastejšie meníš tieto miesta.
| File / FolderSúbor / Priečinok | What you changeČo meníš |
|---|---|
.env | Secrets, DB credentials, CORS, OAuth keys. Never commit this file.Tajomstvá, DB údaje, CORS, OAuth kľúče. Nikdy necommituj. |
.env.example | Template for teammates. Add any new variable here (without values).Šablóna pre tím. Sem pridávaj nové premenné (bez hodnôt). |
docker-compose.yml | Ports, volumes, service names. Adjust if your server already uses a port.Porty, volumes, názvy služieb. Uprav, ak server už niektorý port používa. |
backend/alembic/ | Add new migrations when models change.Pri zmene modelov pridávaj nové migrácie. |
backend/ | API routes, business logic, seed data.API routes, business logika, seed dáta. |
frontend/src/ | React components, pages, styles, i18n strings.React komponenty, stránky, štýly, i18n texty. |
frontend/.env.local | Frontend-only variables like VITE_API_BASE_URL.Len-frontend premenné ako VITE_API_BASE_URL. |
Click Fork on GitHub, then clone your fork to your machine or server.Na GitHube klikni Fork, potom naklonuj svoj fork lokálne alebo na server.
Keep main clean. Work in short, named branches.Nechaj main čistý. Pracuj v krátkych pomenovaných vetvách.
git checkout -b feat/my-change
Copy the example and fill in real values. Generate a long SECRET_KEY.Skopíruj vzor a vyplň reálne hodnoty. Vygeneruj si dlhý SECRET_KEY.
cp .env.example .env
python -c "import secrets; print(secrets.token_urlsafe(48))"
Pick Docker or local. Minimal Docker run:Vyber Docker alebo lokál. Minimálny Docker beh:
docker compose up -d --build
docker compose logs -f api
Pull upstream regularly so your fork keeps getting fixes.Pravidelne sťahuj upstream, aby tvoj fork dostával opravy.
git fetch upstream
git checkout main
git merge upstream/main
git push origin main
On the server: git pull, docker compose up -d --build. Alembic runs on startup when RUN_MIGRATIONS=true.Na serveri: git pull, docker compose up -d --build. Alembic sa spúšťa pri štarte, ak je RUN_MIGRATIONS=true.
# on the machine running FlowSpace
cd flowspace
git pull
docker compose pull # only if using pre-built image
docker compose up -d --build
docker compose exec api alembic -c backend/alembic.ini upgrade head
git tag v1.2.0 && git push --tags. Easier rollbacks.
Taguj deploye: git tag v1.2.0 && git push --tags. Ľahší rollback.
SECRET_KEY in production, different from dev.Silný náhodný SECRET_KEY v produkcii, iný než v dev.CORS_ORIGINS to your real domains.Obmedz CORS_ORIGINS len na svoje reálne domény.admin/admin in production.Rotuj DB heslá, v produkcii nikdy nenechávaj admin/admin.postgres_data volume regularly.Pravidelne zálohuj volume postgres_data.