Skip to content

Commit d0d09c6

Browse files
committed
Add deployment guides, images, and update configs
Added comprehensive VPS deployment and final steps guides to the docs directory. Updated environment files for production readiness and security, including admin credentials and API key placeholders. Added backup and database scripts to client README. Uploaded new wedding-related images to the client/img directory. Cleaned up old backup script from main README.
1 parent 8b6db14 commit d0d09c6

28 files changed

Lines changed: 1234 additions & 32 deletions

README.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -183,19 +183,3 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
183183

184184
For questions or support, please contact the development team or create an issue in the repository.
185185

186-
<!--
187-
188-
BACKUP_DIR="/backups"
189-
DATE=$(date +%Y%m%d_%H%M%S)
190-
APP_DIR="/var/www/sharothee-wedding"
191-
192-
mkdir -p $BACKUP_DIR
193-
194-
# Database backup
195-
mysqldump -u root -p wedding_db > /var/www/db_backup.sql
196-
197-
mysqldump -u username -p database_name > data-dump.sql
198-
199-
ALTER USER 'root'@'localhost' IDENTIFIED BY 'W3dd1ng@ArvinIncia2025!Secure';
200-
201-
use wedding_db; -->

client/.env.local

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
1-
# Local development environment (SQLite)
2-
# Add Environment NODE_ENV for local
3-
NODE_ENV="development"
4-
DATABASE_PROVIDER="sqlite"
5-
DATABASE_URL="file:./prisma/dev.db"
6-
NEXTAUTH_SECRET="dev-secret-change-me"
7-
NEXTAUTH_URL="http://localhost:3000"
8-
RESEND_API_KEY=""
9-
CLOUDINARY_CLOUD_NAME=""
10-
CLOUDINARY_API_KEY=""
11-
CLOUDINARY_API_SECRET=""
1+
# Database
2+
DATABASE_URL="mysql://wedding_user:W3dd1ng%40ArvinIncia2025Secure@localhost:3306/wedding_db"
123

4+
# NextAuth
5+
NEXTAUTH_SECRET="your-super-secure-nextauth-secret-key-2025-wedding"
6+
NEXTAUTH_URL="https://arvinwedsincia.com"
7+
8+
# Email (Resend) - Using a placeholder for build
9+
RESEND_API_KEY="re_placeholder_key_for_build"
10+
11+
# Cloudinary (for media uploads) - Using placeholders for build
12+
CLOUDINARY_CLOUD_NAME="placeholder_cloud"
13+
CLOUDINARY_API_KEY="placeholder_api_key"
14+
CLOUDINARY_API_SECRET="placeholder_api_secret"
15+
16+
# Google Maps (optional)
17+
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY="placeholder_maps_key"
18+
19+
# Admin credentials
20+
ADMIN_EMAIL="admin@arvinwedsincia.com"
21+
ADMIN_PASSWORD="SecureAdmin2025!"
22+
23+
# App Configuration
24+
NODE_ENV="production"

client/.env.production

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ DATABASE_URL="mysql://wedding_user:W3dd1ng@ArvinIncia2025!Secure@localhost:3306/
1414
NEXTAUTH_URL="https://arvinwedsincia.com"
1515
NEXTAUTH_SECRET="qX8mK9vL2nP5sR7tY1wE3rT6uI8oP0aS9dF4gH7jK2lM5nQ8rT1wE6rY9uI3oP5aS2dF7gH0jK4lM8nQ1rT6wE9uI2oP5"
1616

17-
# Admin Credentials
17+
# Admin credentials
1818
ADMIN_EMAIL="admin@arvinwedsincia.com"
19-
ADMIN_PASSWORD="Adm1n@ArvinIncia2025!Secure"
19+
ADMIN_PASSWORD="SecureAdmin2025!"
2020

2121
# Email Service (Resend)
2222
RESEND_API_KEY="re_placeholder_update_with_real_resend_api_key"

client/README.md

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,52 @@ To learn more about Next.js, take a look at the following resources:
2929

3030
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
3131

32-
## Deploy on Vercel
3332

34-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
33+
## Backup Script
3534

36-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
35+
# Variables (adjust if you like)
36+
DATE=$(date +%F_%H%M%S)
37+
PROJECT_DIR="/var/www/wedding/"
38+
BACKUP_DIR="/var/backups/wedding/"
39+
40+
# Create backup directory
41+
sudo mkdir -p "$BACKUP_DIR"
42+
43+
# Create a gzipped tarball
44+
sudo tar -czf "/var/backups/wedding/Sharothee-Wedding.tar.gz" \ -C "$(dirname "$PROJECT_DIR")" "$(basename "$PROJECT_DIR")"
45+
46+
# Verify
47+
ls -lh "$BACKUP_DIR"/Sharothee-Wedding_${DATE}.tar.gz
48+
49+
# Install zip if needed (Ubuntu/Debian)
50+
# sudo apt-get update && sudo apt-get install -y zip
51+
52+
DATE=$(date +%F_%H%M%S)
53+
PROJECT_DIR="/var/www/wedding/"
54+
BACKUP_DIR="/var/backups/wedding/"
55+
sudo mkdir -p "$BACKUP_DIR"
56+
57+
# Create a recursive zip
58+
sudo zip -r "/var/backups/wedding/Sharothee-Wedding.zip" "/var/www/wedding/client/"
59+
60+
61+
# Remove the zip file
62+
sudo rm -f "/var/backups/wedding/Sharothee-Wedding.zip"
63+
64+
# Verify
65+
ls -lh "$BACKUP_DIR"/Sharothee-Wedding_${DATE}.zip
66+
67+
68+
69+
# Database backup
70+
mysqldump -u root -p wedding_db > /var/www/db_backup.sql
71+
72+
mysqldump -u username -p database_name > data-dump.sql
73+
74+
ALTER USER 'root'@'localhost' IDENTIFIED BY 'W3dd1ng@ArvinIncia2025!Secure';
75+
76+
use wedding_db;
77+
78+
79+
80+
mysqldump -u wedding_user -p'W3dd1ng@ArvinIncia2025!Secure' wedding_db > $BACKUP_DIR/wedding_db_$DATE.sql
207 KB
Loading
313 KB
Loading
1.92 MB
Loading
1.2 MB
Loading
1.25 MB
Loading
81 KB
Loading

0 commit comments

Comments
 (0)