This guide will walk you through deploying the Veridas platform to make it publicly accessible.
- Frontend: Deployed on Vercel (Next.js)
- Backend: Deployed on Render (FastAPI)
- Database: PostgreSQL with pgvector on Render
- Cache: Redis on Render
- GitHub account (already set up ✅)
- Vercel account (free)
- Render account (free)
- Go to https://render.com/register
- Sign up with your GitHub account
- Authorize Render to access your repositories
- Click "New +" → "Blueprint"
- Connect your GitHub repository:
NEBUMARK001/Veridas - Render will detect the
render.yamlfile automatically - Click "Apply" to create all services:
veridas-backend(Web Service)veridas-db(PostgreSQL Database)veridas-redis(Redis)
After deployment starts, go to the veridas-backend service:
- Click on "Environment" tab
- Add the following variable:
- Key:
FRONTEND_URL - Value: (Leave blank for now, we'll update after Vercel deployment)
- Key:
- Click "Save Changes"
- Initial deployment takes 5-10 minutes
- You'll see build logs in real-time
- Once complete, you'll get a URL like:
https://veridas-backend.onrender.com
Visit your backend URL and you should see:
{"message": "Welcome to Veridas API"}- Go to https://vercel.com/signup
- Sign up with your GitHub account
- Authorize Vercel to access your repositories
- Click "Add New..." → "Project"
- Import
NEBUMARK001/Veridasrepository - Configure project:
- Framework Preset: Next.js
- Root Directory:
frontend - Build Command:
npm run build - Output Directory:
.next
Before deploying, add environment variable:
- Click "Environment Variables"
- Add:
- Key:
NEXT_PUBLIC_API_URL - Value: Your Render backend URL (e.g.,
https://veridas-backend.onrender.com)
- Key:
- Click "Deploy"
- Deployment takes 2-5 minutes
- You'll get a URL like:
https://veridas.vercel.app
Now that you have the Vercel URL, update the backend:
- Go back to Render dashboard
- Open
veridas-backendservice - Go to "Environment" tab
- Update
FRONTEND_URLto your Vercel URL (e.g.,https://veridas.vercel.app) - Click "Save Changes"
- Service will automatically redeploy
- Visit your Vercel URL
- Homepage should load with all styling
- Navigation should work
- Try to sign up for a new account
- If successful, backend connection is working!
- Sign up / Log in
- Upload a test document (PDF)
- Ask a question in the chat
- Verify response is generated
- 503 Service Unavailable: Free tier databases sleep after 15 minutes. Wait 30-60 seconds for wake up.
- Database Connection Error: Check that
DATABASE_URLis correctly set in Render environment variables.
- API Connection Failed: Verify
NEXT_PUBLIC_API_URLis set correctly in Vercel. - CORS Error: Ensure
FRONTEND_URLis set in Render backend environment variables.
- Migration Errors: Render should auto-run migrations. Check backend logs if issues occur.
- Render free databases sleep after 15 minutes of inactivity
- First request after sleep takes 30-60 seconds
- For production use, upgrade to paid tiers
🔒 Security:
- Secret keys are auto-generated by Render
- Never commit
.envfiles to git - Use environment variables for all sensitive data
After completing the steps above, save your URLs:
- Frontend:
https://veridas.vercel.app(or your custom domain) - Backend:
https://veridas-backend.onrender.com - API Docs:
https://veridas-backend.onrender.com/docs
- Set up custom domain on Vercel (optional)
- Configure monitoring and alerts
- Set up CI/CD for automatic deployments
- Consider upgrading to paid tiers for production use