Anforderungen
- Docker
- Node.js
- Git
- Gitlab Zugang (siehe hier)
Installation
Docker: https://docs.docker.com/get-docker/
Node.js: https://nodejs.org/en/
Git: https://git-scm.com/downloads
Source Code clonen
- SSH Key austauschen
ssh-ssh-keygen
cat /Users/fsu/.ssh/id_rsa
2. In Gitlab anmelden -> Mein Konto -> Einstellungen -> SSH Keys -> SSH Key einfügen
3. Terminal öffnen
# Frontend
git clone https://gitlab.com/sigzentrum/portal/frontend.git
cd frontend
npm install
# Backend
git clone https://gitlab.com/sigzentrum/portal/backend.git
cd backend
cp .env.example .env
4. Falls nötig die Variabeln in .env anpassen.
5. Docker starten
# open root dir from backend
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
# NodeJS, PostgreSQL and Redis server should now run
6. Die API sowie Front end sollte erreichbar sein.