Skip to content

Commit fa7fd97

Browse files
massive refactoring, added matrix compulsory room to ui
1 parent bdf7f78 commit fa7fd97

184 files changed

Lines changed: 5550 additions & 2460 deletions

File tree

Some content is hidden

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

.github/workflows/deployment-docker-staging.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ jobs:
177177
SERVERPOD_MAIL_ADMIN: ${{ secrets.SERVERPOD_MAIL_ADMIN }}
178178
# Matrix configuration for sending emails
179179
MATRIX_SERVER_URL: ${{ secrets.MATRIX_SERVER_URL }}
180+
MATRIX_USER_ID: ${{ secrets.MATRIX_USER_ID }}
180181
MATRIX_AUTH_TOKEN: ${{ secrets.MATRIX_AUTH_TOKEN }}
181182

182183
- name: cleanup

.github/workflows/deployment-docker.md

Lines changed: 44 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,30 +30,50 @@ To reduce the workload on the machine, we do not use Redis in this deployment.
3030

3131
## Table of Contents
3232

33-
- [Prerequisites](#prerequisites)
34-
- [Table of Contents](#table-of-contents)
35-
- [Preparing the server](#preparing-the-server)
36-
- [Registering at Hetzner Cloud](#registering-at-hetzner-cloud)
37-
- [Setting up an SSH key to connect to the server](#setting-up-an-ssh-key-to-connect-to-the-server)
38-
- [Creating a new server](#creating-a-new-server)
39-
- [Setting up the server](#setting-up-the-server)
40-
- [Step 1: Create the new user](#step-1-create-the-new-user)
41-
- [Step 2: Grant Docker permissions](#step-2-grant-docker-permissions)
42-
- [Step 3: Enable SSH access](#step-3-enable-ssh-access)
43-
- [Step 4: Set up SSH key-based authentication](#step-4-set-up-ssh-key-based-authentication)
44-
- [Firewall configuration](#firewall-configuration)
45-
- [Preparing the domain](#preparing-the-domain)
46-
- [Preparing the repository](#preparing-the-repository)
47-
- [Getting a GitHub Personal Access Token](#getting-a-github-personal-access-token)
48-
- [Adding the secrets to the repository](#adding-the-secrets-to-the-repository)
49-
- [Creating the deployment files](#creating-the-deployment-files)
50-
- [Configuring SSL-certificates](#configuring-ssl-certificates)
51-
- [Configuring the GitHub-Action](#configuring-the-github-action)
52-
- [Running the GitHub-Action](#running-the-github-action)
53-
- [Using the Serverpod Insights app](#using-the-serverpod-insights-app)
54-
- [Connecting your Flutter client](#connecting-your-flutter-client)
55-
- [Connecting to the Database using DBeaver](#connecting-to-the-database-using-dbeaver)
56-
- [Multi-Environment Setup (Staging + Production)](#multi-environment-setup-staging--production)
33+
- [Serverpod Deployment to a VPS using Docker](#serverpod-deployment-to-a-vps-using-docker)
34+
- [Prerequisites](#prerequisites)
35+
- [Table of Contents](#table-of-contents)
36+
- [Preparing the server](#preparing-the-server)
37+
- [Registering at Hetzner Cloud](#registering-at-hetzner-cloud)
38+
- [Setting up an SSH key to connect to the server](#setting-up-an-ssh-key-to-connect-to-the-server)
39+
- [Creating a new server](#creating-a-new-server)
40+
- [Setting up the server](#setting-up-the-server)
41+
- [Step 1: Create the new user](#step-1-create-the-new-user)
42+
- [Step 2: Grant Docker permissions](#step-2-grant-docker-permissions)
43+
- [Step 3: Enable SSH access](#step-3-enable-ssh-access)
44+
- [Step 4: Set up SSH key-based authentication](#step-4-set-up-ssh-key-based-authentication)
45+
- [Firewall configuration](#firewall-configuration)
46+
- [Preparing the domain](#preparing-the-domain)
47+
- [Preparing the repository](#preparing-the-repository)
48+
- [Getting a GitHub Personal Access Token](#getting-a-github-personal-access-token)
49+
- [Adding the secrets to the repository](#adding-the-secrets-to-the-repository)
50+
- [Creating the deployment files](#creating-the-deployment-files)
51+
- [Configuring SSL-certificates](#configuring-ssl-certificates)
52+
- [Configuring the GitHub-Action](#configuring-the-github-action)
53+
- [Running the GitHub-Action](#running-the-github-action)
54+
- [Using the Serverpod Insights app](#using-the-serverpod-insights-app)
55+
- [Connecting your Flutter client](#connecting-your-flutter-client)
56+
- [Connecting to the Database using DBeaver](#connecting-to-the-database-using-dbeaver)
57+
- [Multi-Environment Setup (Staging + Production)](#multi-environment-setup-staging--production)
58+
- [Overview](#overview)
59+
- [Commands](#commands)
60+
- [Production Environment](#production-environment)
61+
- [Staging Environment](#staging-environment)
62+
- [Generated Files](#generated-files)
63+
- [Production Environment](#production-environment-1)
64+
- [Staging Environment](#staging-environment-1)
65+
- [GitHub Secrets Configuration for Multi-Environment](#github-secrets-configuration-for-multi-environment)
66+
- [Shared Secrets](#shared-secrets)
67+
- [Production Secrets (Legacy Names - No Prefix)](#production-secrets-legacy-names---no-prefix)
68+
- [Staging Secrets](#staging-secrets)
69+
- [Branch Strategy](#branch-strategy)
70+
- [Production Deployment](#production-deployment)
71+
- [Staging Deployment](#staging-deployment)
72+
- [VPS Setup Requirements](#vps-setup-requirements)
73+
- [Setting Up Both Servers with Shared SSH Key](#setting-up-both-servers-with-shared-ssh-key)
74+
- [Step 1: Set Up Your First Server (Production)](#step-1-set-up-your-first-server-production)
75+
- [Step 2: Copy SSH Key to Second Server (Staging)](#step-2-copy-ssh-key-to-second-server-staging)
76+
- [Step 3: Configure GitHub Secrets](#step-3-configure-github-secrets)
5777

5878
## Preparing the server
5979

.github/workflows/deployment-docker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ jobs:
173173
SERVERPOD_MAIL_ADMIN: ${{ secrets.SERVERPOD_MAIL_ADMIN }}
174174
# Matrix configuration for sending emails
175175
MATRIX_SERVER_URL: ${{ secrets.MATRIX_SERVER_URL }}
176+
MATRIX_USER_ID: ${{ secrets.MATRIX_USER_ID }}
176177
MATRIX_AUTH_TOKEN: ${{ secrets.MATRIX_AUTH_TOKEN }}
177178

178179
- name: cleanup

school_data_hub_flutter/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ updated-policy.json
2727
rooms.json
2828
test_enc.dart
2929
decrypt_files.dart
30+
encrypt_string.dart
3031
**/scripts/
3132
cursor_docs/
3233
test_enc.dart

school_data_hub_flutter/.vscode/school_data_hub_flutter.code-workspace

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@
1414
},
1515
{
1616
"path": "../../docs"
17+
},
18+
{
19+
"path": "../../private"
1720
}
1821
],
19-
"settings": {}
22+
"settings": {
23+
"dart.flutterSdkPath": "C:\\Users\\p53\\.puro\\envs\\3.41.0\\flutter",
24+
"dart.sdkPath": "C:\\Users\\p53\\.puro\\envs\\3.41.0\\flutter\\bin\\cache\\dart-sdk"
25+
}
2026
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"dart.flutterSdkPath": "C:\\Users\\p53\\.puro\\envs\\stable\\flutter",
3-
"dart.sdkPath": "C:\\Users\\p53\\.puro\\envs\\stable\\flutter\\bin\\cache\\dart-sdk"
2+
"dart.flutterSdkPath": "C:\\Users\\p53\\.puro\\envs\\3.41.0\\flutter",
3+
"dart.sdkPath": "C:\\Users\\p53\\.puro\\envs\\3.41.0\\flutter\\bin\\cache\\dart-sdk"
44
}

school_data_hub_flutter/analysis_options.yaml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,17 @@ linter:
1212
sort_child_properties_last: true # Improve readability of widget tree definitions
1313

1414
analyzer:
15+
language:
16+
strict-casts: true
17+
strict-inference: true
18+
strict-raw-types: true
1519
exclude:
16-
- build/** # Exclude generated files in the build directory
17-
- .dart_tool/** # Exclude Dart tool-generated files
18-
- gen/** # Exclude other generated code, if any
20+
- build/**
21+
- .dart_tool/**
22+
- gen/**
1923
errors:
20-
invalid_annotation_target: ignore # Ignore warnings for invalid annotations
21-
missing_required_param: error # Catch missing required parameters early
22-
unused_import: warning # Flag unused imports but at a warning level
23-
deprecated_member_use: warning # Warn about usage of deprecated members
24-
unnecessary_cast: ignore # Ignore unnecessary casts for simpler code
25-
26-
# Optional: Stronger type safety
27-
strong-mode:
28-
implicit-casts: false # Prevent implicit casting, requiring explicit casts
29-
implicit-dynamic: false # Disable implicit dynamic typing for better type safety
24+
invalid_annotation_target: ignore
25+
missing_required_param: error
26+
unused_import: warning
27+
deprecated_member_use: warning
28+
unnecessary_cast: ignore
48.4 KB
Loading
12.7 KB
Loading
45.3 KB
Loading

0 commit comments

Comments
 (0)