Backend server for the Document Viewer application that handles Google Drive integration and file serving.
Required environment variables:
PORT
- Server port (default: 3000)GOOGLE_CLIENT_EMAIL
- Google Service Account client emailGOOGLE_PRIVATE_KEY
- Google Service Account private keyGOOGLE_FOLDER_ID
- Google Drive folder ID to serve files fromCORS_ORIGIN
- Allowed CORS origins (comma-separated)
- Install dependencies:
npm install
-
Create
.env
file with required environment variables -
Start the server:
npm run dev
The API is deployed on Render.com. See render.yaml
for deployment configuration.