docs: Update setup and troubleshooting guides
- Add Docker build troubleshooting section - Update Quick Start with SSL cert and public dir steps - Add prisma db push instruction for database setup - Document common build errors and solutions
This commit is contained in:
@@ -28,22 +28,33 @@ A complete Solana-based rewards system integrated with Plex, Tautulli, and Overs
|
||||
|
||||
```bash
|
||||
# 1. Clone and install dependencies
|
||||
git clone <repository> coop-credits
|
||||
cd coop-credits
|
||||
npm install
|
||||
|
||||
# 2. Set up environment
|
||||
cp backend/.env.example backend/.env
|
||||
# Edit backend/.env with your values
|
||||
cp .env.example .env
|
||||
# Edit .env with your values (see docs/SETUP-INFRASTRUCTURE.md)
|
||||
|
||||
# 3. Start with Docker Compose
|
||||
docker-compose up -d
|
||||
# 3. Create required directories
|
||||
mkdir -p docker/nginx/ssl
|
||||
mkdir -p frontend/public
|
||||
|
||||
# 4. Deploy Solana program
|
||||
# 4. Generate SSL certificates (self-signed for local dev)
|
||||
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
|
||||
-keyout docker/nginx/ssl/key.pem \
|
||||
-out docker/nginx/ssl/cert.pem \
|
||||
-subj "/CN=localhost"
|
||||
|
||||
# 5. Start with Docker Compose
|
||||
docker-compose up -d --build
|
||||
|
||||
# 6. Initialize database (first time only)
|
||||
docker-compose exec backend npx prisma db push
|
||||
|
||||
# 7. Deploy Solana program (optional, for token features)
|
||||
cd anchor-program
|
||||
anchor deploy
|
||||
|
||||
# 5. Seed initial data
|
||||
npm run db:seed
|
||||
```
|
||||
|
||||
## Project Structure
|
||||
|
||||
Reference in New Issue
Block a user