Skip to content

Latest commit

 

History

History
97 lines (67 loc) · 2.74 KB

File metadata and controls

97 lines (67 loc) · 2.74 KB

NotifyHub — Render.com Deployment Guide

What you'll have when done


Step 1 — Get Neon PostgreSQL connection string (5 min)

  1. Go to console.neon.tech
  2. Your project "notifyhub" should be there — click it
  3. Click "Connect" button
  4. Copy the connection string — looks like: postgresql://notifyhub_owner:XXXX@ep-XXXX.us-east-2.aws.neon.tech/notifyhub?sslmode=require
  5. Save it — you'll need it in Step 3

Step 2 — Push updated code to GitHub (2 min)

cd "/Users/muralinidugondi/Documents/eclipse projects/A-Healthcare-Builders-Collective/Notify_Claude"

git add .
git commit -m "Add JPA persistence, render.yaml, cloud config"
git push origin main

Step 3 — Deploy to Render via Blueprint (10 min)

  1. Go to render.com → Dashboard
  2. Click "New +" → "Blueprint"
  3. Connect GitHub → select "Murali-SpringAI/notify-platform"
  4. Render detects render.yaml → shows 5 services to create
  5. Click "Apply"
  6. Render starts building all services

While it builds, set these environment variables on notifyhub-event-ingest:

SPRING_DATASOURCE_URL = postgresql://notifyhub_owner:XXXX@ep-XXXX.neon.tech/notifyhub?sslmode=require SPRING_DATASOURCE_DRIVER = org.postgresql.Driver SPRING_JPA_DDL_AUTO = update SPRING_JPA_DIALECT = org.hibernate.dialect.PostgreSQLDialect

Go to Render dashboard → notifyhub-event-ingest → Environment → Add each one.


Step 4 — Update PWA to point to Render (2 min)

Once the gateway is deployed and shows "Live", copy its URL e.g.: https://notifyhub-gateway.onrender.com

Then update the PWA server:

cd notifyhub-health-pwa
python3 serve.py https://notifyhub-gateway.onrender.com

Or for the static PWA on Render, update the BACKEND in patient.html and provider.html and push to GitHub — Render auto-redeploys.


Step 5 — Share with your team

Give everyone these two URLs: Patient app: https://notifyhub-pwa.onrender.com/patient.html Provider app: https://notifyhub-pwa.onrender.com/provider.html

On iPhone: Safari → open URL → Share → Add to Home Screen


Keeping services awake (free tier tip)

Free tier services sleep after 15 min. To wake them before a demo:

curl https://notifyhub-gateway.onrender.com/actuator/health

Run this ~1 minute before your demo. Takes 30 seconds to wake up.

Or upgrade to Starter plan ($7/month per service) for always-on.


Auto-deploy on every push

After setup, every time you run:

git push origin main

Render automatically rebuilds and redeploys the changed services. Takes about 3-5 minutes per service.