Merge branch 'main' into feature/invitations

This commit is contained in:
Saleh Bubshait 2025-07-23 09:16:48 +03:00 committed by GitHub
commit a2523d603e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 83 additions and 5 deletions

14
backend/Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM maven:3.9.11-eclipse-temurin-21
WORKDIR /app
COPY pom.xml .
COPY application.yml .
RUN mvn dependency:go-offline -B
COPY src ./src
EXPOSE 8080
CMD ["mvn", "spring-boot:run"]

21
backend/application.yml Normal file
View File

@ -0,0 +1,21 @@
spring:
datasource:
url: ${DB_URL}
username: ${DB_USER}
password: ${DB_PASSWORD}
driver-class-name: org.postgresql.Driver
jpa:
hibernate:
ddl-auto: update
show-sql: true
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
format_sql: true
application:
name: wesal
server:
port: 8080

View File

@ -28,6 +28,8 @@
</scm>
<properties>
<java.version>21</java.version>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
</properties>
<dependencies>
<dependency>
@ -96,6 +98,16 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<source>21</source>
<target>21</target>
<release>21</release>
</configuration>
</plugin>
</plugins>
</build>

View File

@ -18,3 +18,20 @@ services:
- db
ports:
- 8100:8080
server:
restart: unless-stopped
build:
context: ./backend
dockerfile: Dockerfile
ports:
- 4044:8080
web:
restart: unless-stopped
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- 6060:80

13
frontend/Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM ghcr.io/cirruslabs/flutter:3.32.6 AS build
WORKDIR /app
COPY . .
RUN flutter pub get
RUN flutter build web --release
FROM nginx:alpine
COPY --from=build /app/build/web /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

View File

@ -1,5 +1,5 @@
class ApiConstants {
static const String baseUrl = 'http://localhost:8080';
static const String baseUrl = 'https://api.wesal.online';
// Auth endpoints
static const String loginEndpoint = '/login';

View File

@ -150,6 +150,7 @@ class _ProfilePageState extends State<ProfilePage> {
preferredSize: Size.fromHeight(1),
child: Container(height: 1, color: Colors.grey[200]),
),
automaticallyImplyLeading: false,
),
body: SingleChildScrollView(
child: Column(