Skip to content

Commit e1cacfd

Browse files
committed
gmail server added - update backend/.env
1 parent c9887f0 commit e1cacfd

File tree

14 files changed

+1355
-11
lines changed

14 files changed

+1355
-11
lines changed

.env

Lines changed: 0 additions & 2 deletions
This file was deleted.

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,6 @@ dist-ssr
2424
*.sw?
2525

2626
# Optional manual test
27-
/test/
27+
/test/
28+
/backend/.env
29+
/.env

backend/.env.example

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Gmail SMTP Configuration
2+
SMTP_HOST=smtp.gmail.com
3+
SMTP_PORT=587
4+
5+
SMTP_PASS=your-app-password
6+
7+
8+
PORT=3001

backend/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Contact Form Backend
2+
3+
## Setup
4+
5+
1. **Configure Gmail App Password:**
6+
- Go to Google Account → Security → 2-Step Verification
7+
- Scroll to "App passwords"
8+
- Generate a new app password for "Mail"
9+
- Copy the 16-character password
10+
11+
2. **Update `.env` file:**
12+
```
13+
14+
SMTP_PASS=your-16-char-app-password
15+
16+
```
17+
18+
3. **Start the server:**
19+
```bash
20+
cd backend
21+
npm start
22+
```
23+
24+
Server runs on `http://localhost:3001`

0 commit comments

Comments
 (0)