The Ordervista backend is a Node.js/Express application deployed to Render as a Web Service. Render builds and runs the service directly from theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ytabeloved/ordervista/llms.txt
Use this file to discover all available pages before exploring further.
backend/ subdirectory of the GitHub repository, injecting all secrets as environment variables at runtime. The server exposes a /api/health endpoint you can use to confirm a successful deployment before opening the frontend.
Render Web Service Settings
When creating a new Render Web Service, apply the following configuration in the Render dashboard:| Setting | Value |
|---|---|
| Root Directory | backend |
| Build Command | npm install |
| Start Command | npm start |
backend/ directory, run npm install to install dependencies, and then start the server with npm start on every deployment.
Required Environment Variables
Set the following environment variables in the Render dashboard under Environment → Environment Variables. Never add these values to a committed.env file.
<placeholder> with the real value from your Aiven and Vercel dashboards. Use a long, randomly generated string for JWT_SECRET — at least 32 characters is recommended.
Health Check
After a successful deployment, verify the service is running by calling the health endpoint:200 OK response with this body confirms that the Express server started correctly and connected to the database.
CORS Configuration
TheFRONTEND_URL environment variable is used directly in server.js to build the list of allowed CORS origins. The server permits requests from http://localhost:5173 (local development) and the value of FRONTEND_URL at runtime. Set FRONTEND_URL to the exact URL Vercel assigned to your frontend — including the https:// scheme and without a trailing slash — for example https://ordervista.vercel.app. Any mismatch will cause the browser to block API requests with a CORS error.
Deployment Steps
Create a new Web Service on Render
In the Render dashboard, click New → Web Service and connect the
ordervista GitHub repository. If the repository is private, authorise Render to access it through the GitHub integration settings.Configure the service settings
Set Root Directory to
backend, Build Command to npm install, and Start Command to npm start. Choose the Free instance type for development or a paid tier for production workloads.Add all environment variables
Navigate to the Environment tab and add every variable listed in the section above. Double-check
DB_SSL=true, FRONTEND_URL, and JWT_SECRET before saving — these are the most common sources of deployment failures.