One-click deployment template for Fileverse API - a document management system with sync.
Before deploying, you'll need:
- Storage Server API Key - API key for the storage server authentication
| Variable | Required | Description | Default |
|---|---|---|---|
API_KEY |
Yes | Storage server authentication key | - |
DATABASE_URL |
Auto | PostgreSQL connection string (set by Heroku Postgres addon) | - |
RPC_URL |
No | Ethereum RPC endpoint | https://rpc.sepolia.org |
INLINE_WORKER |
No | Run worker in same process | true |
PORT |
Auto | Automatically set by Heroku | - |
This template deploys a single web dyno with Heroku Postgres that runs both:
- API Server: REST API for document management
- Worker: Background process for sync jobs
Both run in the same process (via INLINE_WORKER=true). The Heroku Postgres addon is automatically provisioned and DATABASE_URL is set by Heroku, so data persists across dyno restarts and deployments.
-
After deployment, verify the dyno is running:
heroku ps
-
Check the logs for any startup issues:
heroku logs --tail
To run locally:
npm install
export DATABASE_URL="postgresql://localhost:5432/fileverse"
export API_KEY="your-api-key"
npm startISC