Skip to content

Latest commit

 

History

History
88 lines (68 loc) · 1.42 KB

File metadata and controls

88 lines (68 loc) · 1.42 KB

Deployment Guide

Quick Deployment Options

1. Frontend Only (Recommended for beginners)

Vercel (Easiest)

cd frontend
npm run build
npx vercel --prod

Netlify

cd frontend
npm run build
npx netlify deploy --prod --dir=build

2. Full Stack Deployment

Railway (Recommended)

# Install Railway CLI
npm install -g @railway/cli

# Deploy
railway login
railway init
railway up

Render

  1. Connect your GitHub repo to Render
  2. Create a Web Service
  3. Build Command: npm run build
  4. Start Command: cd backend && python main.py

Heroku

# Create Heroku app
heroku create your-app-name

# Set environment variables
heroku config:set ENVIRONMENT=production

# Deploy
git add .
git commit -m "Deploy to Heroku"
git push heroku main

Environment Variables

Set these in your deployment platform:

ENVIRONMENT=production
PORT=8000

Build Steps

  1. Build Frontend:

    cd frontend
    npm install
    npm run build
  2. Install Backend Dependencies:

    cd backend
    pip install -r requirements.txt
  3. Start Production Server:

    cd backend
    ENVIRONMENT=production python main.py

Troubleshooting

  • If you get "build directory not found" error, run npm run build in the frontend directory first
  • Make sure Python 3.9+ is installed
  • Check that all dependencies are installed correctly