Skip to content

Commit b10c914

Browse files
committed
Füge dynamische Backend-URL basierend auf der Umgebung hinzu und aktualisiere die Verbindungstest-Logik.
1 parent 2cb10b2 commit b10c914

25 files changed

+829
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.git
2+
.gitignore
3+
node_modules/
4+
npm-debug.log
5+
.env
6+
.env.*
7+
*.log
8+
.vscode/
9+
.idea/
10+
dist/
11+
build/
12+
coverage/
13+
.DS_Store
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Build stage
2+
FROM node:18-alpine AS builder
3+
4+
WORKDIR /app
5+
6+
# Copy package files
7+
COPY package*.json ./
8+
9+
# Install dependencies
10+
RUN npm install
11+
12+
# Copy source code
13+
COPY . .
14+
15+
# Production stage
16+
FROM node:18-alpine
17+
18+
WORKDIR /app
19+
20+
# Copy package files and install production dependencies
21+
COPY package*.json ./
22+
RUN npm install --production
23+
24+
# Copy built files from builder stage
25+
COPY --from=builder /app/server.js .
26+
27+
# Expose port
28+
EXPOSE 3000
29+
30+
# Start the application
31+
CMD ["node", "server.js"]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: "3.8"
2+
3+
services:
4+
frontend:
5+
build:
6+
context: ./frontend
7+
dockerfile: Dockerfile
8+
ports:
9+
- "80:80"
10+
depends_on:
11+
- backend
12+
networks:
13+
- app-network
14+
15+
backend:
16+
build:
17+
context: ./backend
18+
dockerfile: Dockerfile
19+
ports:
20+
- "3000:3000"
21+
networks:
22+
- app-network
23+
24+
networks:
25+
app-network:
26+
driver: bridge
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: "3.8"
2+
3+
services:
4+
frontend:
5+
build:
6+
context: ./frontend
7+
dockerfile: Dockerfile
8+
ports:
9+
- "80:80"
10+
depends_on:
11+
- backend
12+
networks:
13+
- app-network
14+
15+
backend:
16+
build:
17+
context: ./backend
18+
dockerfile: Dockerfile
19+
ports:
20+
- "3000:3000"
21+
networks:
22+
- app-network
23+
24+
networks:
25+
app-network:
26+
driver: bridge
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.git
2+
.gitignore
3+
.dart_tool/
4+
.flutter-plugins
5+
.flutter-plugins-dependencies
6+
.packages
7+
.pub-cache/
8+
.pub/
9+
build/
10+
ios/
11+
android/
12+
*.iml
13+
*.iws
14+
.idea/
15+
.vscode/
16+
*.log
17+
*.lock
18+
*.g.dart
19+
*.freezed.dart
20+
*.mocks.dart
21+
*.config.dart
22+
*.gr.dart
23+
*.gen.dart
24+
*.g.dart
25+
*.freezed.dart
26+
*.mocks.dart
27+
*.config.dart
28+
*.gr.dart
29+
*.gen.dart
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)