Skip to content

Commit 882965c

Browse files
GalacticCodeGambitEdenBernhardNicoolausPrussianBaron
authored
Blatt7 (#75)
* Backend First Structure * Backend First Structure * Klassendiagramm * Klassendiagramm.png neu hinzugefügt damit Hintergrund nicht mehr schwarz. * Hello World mäßiger Prototyp für LazyCook * Funktionierende Homepage * Delete old Files * Delete old Files * Delete chart.tsx and new dependencies * Erste Datenbank Funktionen implementiert * Popup-Windows for Signin and Signup * Popup-Windows for Signin and Signup * Datenbankstruktur Screenshot * AnmeldeScreen.png und RegistrierenScreen.png zu Docs hinzugefügt * blatt6-refactoring per Hand gemacht * README.md Problem beim Entwickeln hinzugefügt * README.md Problem beim Entwickeln hinzugefügt --------- Co-authored-by: Eden Bernhard <etbernhard4@gmail.com> Co-authored-by: Eden Tabea Bernhard <105359952+EdenBernhard@users.noreply.github.com> Co-authored-by: nicla <niclas.matzke@gmail.com> Co-authored-by: PrussianBaron <goebelsamuel@gmail.com>
1 parent ac31b61 commit 882965c

80 files changed

Lines changed: 1086 additions & 30 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: ci
2+
on: push
3+
4+
jobs:
5+
Test:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Install Docker Compose
11+
run: |
12+
sudo apt-get update
13+
sudo apt-get install -y docker-compose
14+
- name: Build the stack
15+
run: docker-compose -f project/compose.yaml build
16+
# Container starten
17+
- name: Start services
18+
run: docker-compose -f project/compose.yaml up -d
19+
20+
# Healthcheck / Test
21+
# - name: Run tests
22+
# run: |
23+
# docker ps
24+
# curl -s --retry 10 --retry-connrefused http://localhost:8000/
25+
# - name: Test
26+
# run: docker run --network container:webapp-frontend appropriate/curl -s --retry 10 --retry-connrefused http://localhost:5000/
27+
28+
- name: Wait for frontend on :8000
29+
run: |
30+
PORT=8000
31+
attempts=30
32+
wait_seconds=3
33+
for i in $(seq 1 $attempts); do
34+
if curl -fsSL --retry-all-errors --retry 0 "http://localhost:${PORT}/" >/dev/null 2>&1; then
35+
echo "ready"
36+
exit 0
37+
fi
38+
echo "waiting... ($i)"
39+
sleep $wait_seconds
40+
done
41+
echo "service not ready" >&2
42+
docker-compose -f project/compose.yaml ps || true
43+
docker-compose -f project/compose.yaml logs || true
44+
exit 1
45+
46+
- name: Smoke test
47+
run: curl -fsSL -o /dev/null http://localhost:8000/

Project/Dockerfile-frontend

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ FROM node:24-alpine3.20
22
WORKDIR /app
33

44
# Copy package.json and package-lock.json
5-
COPY Frontend/lazycook/package*.json ./
5+
COPY frontend/package*.json ./
66

77
# Install dependencies
88
RUN npm install
99

1010
# Copy the rest of the application files
11-
COPY Frontend/lazycook/ .
11+
COPY frontend/ .
1212

1313
RUN npm run build
1414

File renamed without changes.

Project/Frontend/lazycook/app/components/figma/ImageWithFallback.tsx renamed to Project/Frontend/app/components/figma/ImageWithFallback.tsx

File renamed without changes.
File renamed without changes.

Project/Frontend/lazycook/app/components/ui/alert-dialog.tsx renamed to Project/Frontend/app/components/ui/alert-dialog.tsx

File renamed without changes.
File renamed without changes.

Project/Frontend/lazycook/app/components/ui/aspect-ratio.tsx renamed to Project/Frontend/app/components/ui/aspect-ratio.tsx

File renamed without changes.

0 commit comments

Comments
 (0)