33 lines
852 B
Markdown
33 lines
852 B
Markdown
|
|
# TCG Vault Deployment Guide
|
||
|
|
|
||
|
|
## Option 1: Split Deployment (Recommended)
|
||
|
|
|
||
|
|
### Frontend: DreamHost Shared Hosting
|
||
|
|
1. Build the React app: `npm run build`
|
||
|
|
2. Upload the `build/` folder to DreamHost public_html
|
||
|
|
3. Configure routing for React Router
|
||
|
|
|
||
|
|
### Backend: Railway (Free Tier)
|
||
|
|
1. Push backend to GitHub
|
||
|
|
2. Connect Railway to your repo
|
||
|
|
3. Deploy with one click
|
||
|
|
4. Get API URL (e.g., https://tcg-vault-api.railway.app)
|
||
|
|
|
||
|
|
### Update Frontend API URL
|
||
|
|
- Change API base URL in frontend to point to Railway
|
||
|
|
|
||
|
|
## Option 2: DreamHost VPS ($12/month)
|
||
|
|
- Full control over Python/FastAPI
|
||
|
|
- SSH access for deployment
|
||
|
|
- Database flexibility
|
||
|
|
|
||
|
|
## Option 3: Full Free Deployment
|
||
|
|
- Frontend: Vercel/Netlify
|
||
|
|
- Backend: Railway/Render
|
||
|
|
- Database: PostgreSQL (free tier)
|
||
|
|
|
||
|
|
## Option 4: All-in-One Solutions
|
||
|
|
- Heroku (hobby tier)
|
||
|
|
- DigitalOcean App Platform
|
||
|
|
- AWS Amplify
|