Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a126d28
Finish the JS and TS homework
Aug 15, 2025
a8b0d52
adjust the gitignore file
Aug 18, 2025
6ab1a8a
merge the 02-JS&TS revisions to this branch
Aug 18, 2025
2dfd6e1
Finish the Database homework, the user can reply a quoted message
Aug 18, 2025
a2cbdd7
Merge branch '03-Database' into 04-Backend
Aug 19, 2025
5245dce
Finish the backend homework, where the password of a user can be reset
Aug 23, 2025
71e07a0
A minor revision of backend homework
Aug 23, 2025
c720b56
Merge branch '04-Backend' into 05-Frontend
Aug 23, 2025
118bbe3
Finish the frontend homework: Users can reply to a message by right-c…
Aug 27, 2025
8924535
Merge branch '05-Frontend' into 06-Deployment
Aug 27, 2025
2d56d0a
revise the main branch to 06-Deployment branch
Sep 8, 2025
9d6a82b
remove the variables that are defined but never used
Sep 8, 2025
01faa89
revise backend.yml, since the usernames of github and dockerhub are d…
Sep 8, 2025
cd3c10f
revise backend.yml, since the repository name must be lowercase
Sep 8, 2025
fb9683d
revise backend.yml
Sep 8, 2025
ab29e39
revise backend.yml, the Gemini 2.5 flash is completely GABISH
Sep 8, 2025
7329683
revise backend.yml,,,,
Sep 8, 2025
fcc3a8e
complete database deployment in my ubuntu server
Sep 9, 2025
e320149
finish backend deployment in my server, and revise the .env file in f…
Sep 10, 2025
f9046e8
revise .env
Sep 10, 2025
3a63570
deploy nginx, and revise .env file in frontend dir
Sep 11, 2025
5a2dbe0
re-gengerate graphql.ts(x) in back and front end
Sep 11, 2025
43878b7
revise
Sep 11, 2025
39f9406
revise
Sep 11, 2025
7a7f321
revise2
Sep 11, 2025
ffef67d
adjust slightly the frontend public
Sep 11, 2025
915ae19
adjust slightly the frontend public again
Sep 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: backend

on:
push:
branches: [ main ]
branches: [ "06-Deployment" ]

permissions:
packages: write
Expand Down Expand Up @@ -63,5 +63,5 @@ jobs:
context: ./backend
push: true
tags: |
ghcr.io/${{ vars.DOCKER_TAG }}
${{ vars.DOCKER_TAG }}
${{ vars.DOCKERHUB_USERNAME }}/${{ vars.IMAGE_NAME }}:latest
ghcr.io/flyingpointer2/${{ vars.IMAGE_NAME }}:latest
4 changes: 2 additions & 2 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: frontend
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches: ["06-Deployment"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: yarn
cache-dependency-path: ./frontend/yarn.lock

Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ build
electron

.local.env

# new
.DS_Store
.env
5 changes: 3 additions & 2 deletions backend/src/email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import nodemailer from "nodemailer";

const router = express.Router();

const sendEmail = async (to: string, subject: string, text: string) => {
// 增加 export 使得 sendEmail 函数可以被其他脚本调用
export const sendEmail = async (to: string, subject: string, text: string) => {
const transporter = nodemailer.createTransport({
host: process.env.EMAIL_HOST!,
port: Number(process.env.EMAIL_PORT!),
Expand All @@ -29,7 +30,7 @@ router.post("/contact-us", async (req, res) => {
}
try {
const result = await sendEmail(
process.env.EMAIL_ADDRESS!,
`${email}`,
"Web Workshop Contact Us Form",
`Message from ${name} <${email}>:\n\n${message}`,
);
Expand Down
Loading