← back to Glassbeadedwallpaper

README.md

132 lines

# GlassBeadedWallpaper.com

Premium glass beaded, sequin, and glitter wallcoverings - All Class "A" Fire Rated

## Quick Start

### Server is Running!
- **URL:** http://localhost:3012/
- **Health Check:** http://localhost:3012/health
- **Status:** ✅ ONLINE

### View Status
```bash
pm2 list
pm2 show glassbeadedwallpaper
pm2 logs glassbeadedwallpaper
```

### Next Steps

1. **Fetch Products from Shopify:**
```bash
npm run fetch-products
```

2. **View the Site:**
   - Open http://localhost:3012/ in your browser
   - Products will display after running fetch script

3. **Review Documentation:**
   - `PRD.md` - Full product requirements
   - `DEPLOYMENT.md` - Deployment guide and next steps

## Key Features

- ✅ Running on port 3012
- ✅ PM2 auto-restart (NEVER goes down)
- ✅ Class "A" Fire Rated badges on all products
- ✅ SEO optimized (meta tags, structured data)
- ✅ Mobile responsive design
- ✅ Firewall configured
- ✅ Health monitoring endpoint

## Project Structure

```
/root/DW-Websites/glassbeadedwallpaper/
├── index.html                    # Main website
├── styles.css                    # Glass bead theme
├── server.js                     # HTTP server (port 3012)
├── ecosystem.config.js           # PM2 configuration
├── fetch-glass-bead-products.js  # Shopify integration
├── package.json                  # Dependencies
├── PRD.md                        # Requirements document
├── DEPLOYMENT.md                 # Deployment guide
├── README.md                     # This file
└── logs/                         # PM2 logs
```

## Management Commands

### PM2
```bash
pm2 restart glassbeadedwallpaper    # Restart server
pm2 stop glassbeadedwallpaper       # Stop server
pm2 logs glassbeadedwallpaper       # View logs
pm2 monit                           # Real-time monitoring
```

### Fetch Products
```bash
npm run fetch-products              # Fetch from Shopify
```

### View Logs
```bash
tail -f logs/combined.log           # All logs
tail -f logs/err.log                # Errors only
```

## Configuration

### Environment Variables
Required in `.env` file:
```
SHOPIFY_STORE_NAME=your-store-name
SHOPIFY_ACCESS_TOKEN=your-access-token
SHOPIFY_API_VERSION=2024-10
```

### PM2 Features
- Auto-restart on crash (immediate)
- Auto-restart on freeze (5 minute timeout)
- Unlimited restart attempts
- Daily restart at 4:00 AM
- Health monitoring

### Firewall
- Port 3012 is open for incoming connections
- Accessible via: http://SERVER_IP:3012/

## SEO Optimization

✅ Comprehensive meta tags
✅ Open Graph & Twitter Cards
✅ Structured data (JSON-LD)
✅ Mobile-first responsive design
✅ Fast page load times
✅ Semantic HTML5

## Class "A" Fire Rating

All products are marked as Class "A" Fire Rated:
- Badge in hero section
- Badge on every product card
- Prominent compliance notice
- Footer disclaimer

## Support

- Health Check: `curl http://localhost:3012/health`
- View Status: `pm2 show glassbeadedwallpaper`
- Check Logs: `pm2 logs glassbeadedwallpaper`
- Documentation: See `DEPLOYMENT.md`

---

**Status:** 🟢 RUNNING
**Port:** 3012
**Auto-restart:** ENABLED
**Last Updated:** October 15, 2025