Skip to content

Commit 9a0264f

Browse files
committed
feat: add email notification system and enhance project management features and workspaces
- Introduced email configuration in .env.sample for SMTP settings. - Integrated nodemailer and handlebars for email templating in the backend. - Updated project management service to send email notifications to team members upon project and task creation. - Enhanced task and project DTOs to include clientId and updated properties. - Refactored task management methods to include user context for better tracking. - Improved frontend components to handle new user and task data structures.
1 parent b238bc6 commit 9a0264f

37 files changed

+2481
-964
lines changed

.env.sample

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,13 @@ S3_REGION=
4040
S3_ACCESS_KEY=
4141
S3_SECRET_KEY=
4242
# S3 COMPATIBLE STORAGE
43-
S3_ENDPOINT_URL=
43+
S3_ENDPOINT_URL=
44+
45+
# Mail Server
46+
SMTP_HOST=host.docker.internal
47+
SMTP_PORT=587
48+
SMTP_USER=task@commitflow.space
49+
SMTP_PASS=Sukses123
50+
SMTP_SECURE=false # true untuk SMTPS(465), false untuk STARTTLS (587)
51+
FROM_NAME=CommitFlow
52+
FROM_ADDRESS=task@commitflow.space

backend/package-lock.json

Lines changed: 40 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@
4141
"dotenv": "^17.2.3",
4242
"exceljs": "^4.4.0",
4343
"google-tts-api": "^2.0.2",
44+
"handlebars": "^4.7.8",
4445
"multer": "^2.0.2",
4546
"node-fetch": "^3.3.2",
47+
"nodemailer": "^7.0.10",
48+
"nodemailer-express-handlebars": "^7.0.0",
4649
"openai": "^6.7.0",
4750
"passport-jwt": "^4.0.1",
4851
"reflect-metadata": "^0.2.2",

0 commit comments

Comments
 (0)