- Go to https://neon.tech
- Sign up and create a new project
- Copy the connection string
- Update your .env with the new DATABASE_URL
- Go to https://railway.app
- Sign up with GitHub
- Click "New Project" → "Deploy from GitHub repo"
- Select your backend folder
- Add environment variables:
- DATABASE_URL (from Neon)
- JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
- FRONTEND_URL=https://your-frontend-url.vercel.app
- Railway will auto-deploy
- Go to https://vercel.com
- Sign up with GitHub
- Click "New Project"
- Select your frontend folder
- Add environment variable:
- REACT_APP_API_URL=https://your-backend-url.railway.app
- Deploy
After deployment, update backend CORS with your actual frontend URL.
Instead of Railway, you can use Render.com:
- Go to https://render.com
- Create Web Service from GitHub
- Add same environment variables
- Deploy
Your app will be live 24/7 with these free tiers!