Implement comprehensive homepage improvements and SEO optimization
Major homepage and SEO enhancements based on optimization document: **Homepage Content Updates:** - Updated H1 titles with SEO-optimized text for both RO/EN - Enhanced hero descriptions with targeted keywords - Improved feature descriptions for better clarity - Updated daily verse section with keyword-rich titles - Added new footer description with SEO focus **SEO Implementation:** - Added dynamic metadata generation with locale-specific SEO - Implemented Open Graph tags for social media sharing - Added Twitter Card metadata for enhanced sharing - Integrated Schema.org JSON-LD structured data - Set up hreflang tags for international SEO - Added canonical URLs to prevent duplicate content - Included targeted keywords for both languages **Technical Improvements:** - Migrated from Docker to PM2 deployment - Removed Docker files and updated deployment scripts - Updated README with PM2 instructions - Fixed console log cleanup for production - Added proper favicon with Next.js app directory - Increased memory limit to 4GB for better performance - Updated port configuration to 0.0.0.0:3010 - Set Romanian (/ro) as default locale with proper redirects **Translation Updates:** - Enhanced Romanian translations with SEO-optimized content - Updated English translations with matching SEO improvements - Added new 'seo' namespace for metadata translations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
41
README.md
41
README.md
@@ -54,12 +54,12 @@ O aplicație web completă pentru studiul Bibliei cu capabilități de chat AI
|
||||
- **AI**: Azure OpenAI API cu fallback la Ollama
|
||||
- **Security**: JWT, bcrypt, rate limiting, input validation
|
||||
- **Testing**: Jest, React Testing Library, TypeScript
|
||||
- **DevOps**: Docker, Docker Compose, Nginx, SSL support
|
||||
- **DevOps**: PM2, Nginx, SSL support
|
||||
- **Performance**: Caching, indexing, optimization scripts
|
||||
|
||||
## Instalare Rapidă
|
||||
|
||||
### Folosind Docker (Recomandat)
|
||||
### Folosind PM2 (Recomandat)
|
||||
|
||||
1. Clonează repository-ul:
|
||||
```bash
|
||||
@@ -83,18 +83,25 @@ JWT_SECRET=your-secure-jwt-secret
|
||||
NEXTAUTH_SECRET=your-secure-nextauth-secret
|
||||
```
|
||||
|
||||
4. Pornește aplicația:
|
||||
4. Instalează dependențele și construiește aplicația:
|
||||
```bash
|
||||
docker-compose up -d
|
||||
npm ci
|
||||
npm run build
|
||||
```
|
||||
|
||||
5. Rulează migrațiile și importă datele biblice:
|
||||
```bash
|
||||
docker-compose exec app npx prisma migrate deploy
|
||||
docker-compose exec app npm run import-bible
|
||||
npx prisma migrate deploy
|
||||
npx prisma generate
|
||||
npm run import-bible
|
||||
```
|
||||
|
||||
6. Accesează aplicația la: http://localhost:3000
|
||||
6. Pornește aplicația cu PM2:
|
||||
```bash
|
||||
pm2 start ecosystem.config.js --env production
|
||||
```
|
||||
|
||||
7. Accesează aplicația la: http://localhost:3000
|
||||
|
||||
### Instalare Manuală
|
||||
|
||||
@@ -149,7 +156,7 @@ npm run dev
|
||||
│ └── db.ts # Conexiunea la baza de date
|
||||
├── prisma/ # Schema și migrații Prisma
|
||||
├── scripts/ # Scripturi de utilitate
|
||||
└── docker/ # Configurații Docker
|
||||
└── ecosystem.config.js # Configurație PM2
|
||||
```
|
||||
|
||||
## Configurare AI
|
||||
@@ -171,12 +178,20 @@ Pentru rularea locală de modele AI:
|
||||
|
||||
## Deployment în Producție
|
||||
|
||||
### Folosind Docker
|
||||
### Folosind PM2
|
||||
|
||||
1. Copiază `.env.example` la `.env.production` și configurează-l
|
||||
2. Construiește și pornește serviciile:
|
||||
1. Copiază `.env.example` la `.env` și configurează-l pentru producție
|
||||
2. Rulează scriptul de deployment:
|
||||
```bash
|
||||
docker-compose -f docker-compose.prod.yml up -d
|
||||
./deploy.sh
|
||||
```
|
||||
|
||||
Sau manual:
|
||||
```bash
|
||||
npm ci
|
||||
npm run build
|
||||
pm2 restart ghidul-biblic || pm2 start ecosystem.config.js --env production
|
||||
pm2 save
|
||||
```
|
||||
|
||||
### Configurare SSL
|
||||
@@ -194,7 +209,7 @@ sudo certbot --nginx -d yourdomain.com
|
||||
## Monitorizare
|
||||
|
||||
- **Health Check**: `/api/health`
|
||||
- **Logs**: `docker-compose logs -f app`
|
||||
- **Logs**: `pm2 logs ghidul-biblic`
|
||||
- **Metrici**: Implementate prin endpoint-uri dedicate
|
||||
|
||||
## Contribuții
|
||||
|
||||
Reference in New Issue
Block a user