Railway

Deploy CronCoco Scheduled Webhook Starter

Deploy webhook endpoints on Railway and schedule them with CronCoco.

Deploy CronCoco Scheduled Webhook Starter

croncoco-railway-template

wb-s/croncoco-railway-template

Just deployed

Deploy and Host CronCoco Scheduled Webhook Starter on Railway

CronCoco Scheduled Webhook Starter is a tiny Node.js webhook receiver for testing and running scheduled product workflows. Deploy it on Railway, set a shared secret, then use CronCoco to call endpoints for hourly syncs, weekly digests, cleanup jobs, and other recurring API work.

About Hosting CronCoco Scheduled Webhook Starter

Hosting this starter on Railway gives you a public HTTPS app with ready-made webhook endpoints and a health check. Railway runs the Node.js service, provides the public domain, stores your CRON_SECRET environment variable, and shows request logs when scheduled webhooks arrive. After deployment, copy your Railway domain into CronCoco, create a scheduled job, and CronCoco will POST to your Railway endpoint on the cron schedule you choose. This is useful for validating scheduled webhook workflows before adding the same pattern to your own app.

Common Use Cases

  • Trigger hourly integration or database sync jobs from CronCoco
  • Generate weekly digest or report workflows on a schedule
  • Clean up expired sessions, trials, temporary records, or stale data

Dependencies for CronCoco Scheduled Webhook Starter Hosting

  • Node.js
  • A CronCoco account and API key
  • A CRON_SECRET environment variable for webhook authentication

Deployment Dependencies

Implementation Details

The template exposes a health check and three example webhook routes:

http
GET /health
POST /webhooks/hourly-sync
POST /webhooks/weekly-digest
POST /webhooks/cleanup-expired-sessions

If CRON_SECRET is configured, webhook requests must include:

x-cron-secret: YOUR_CRON_SECRET

Example CronCoco job:

curl -X POST https://api.croncoco.io/jobs \
  -H "Authorization: Bearer coco_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "hourly-sync",
    "cron_expression": "0 * * * *",
    "webhook_url": "https://YOUR-RAILWAY-DOMAIN/webhooks/hourly-sync",
    "headers": {
      "x-cron-secret": "YOUR_CRON_SECRET"
    },
    "payload": {
      "source": "croncoco"
    }
  }'

Why Deploy CronCoco Scheduled Webhook Starter on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying CronCoco Scheduled Webhook Starter on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

croncoco-railway-template

wb-s/croncoco-railway-template

More templates in this category

View Template
N8N Main + Worker
Deploy and Host N8N with Inactive worker.

jakemerson
View Template
Postgres Backup
Cron-based PostgreSQL backup to bucket storage

Railway Templates
View Template
Prefect [Updated May ’26]
Prefect [May ’26] (ETL & Automation alternative to Airflow) Self Host

shinyduo