Integrate Heroku and Data Cloud using the Heroku PostgreSQL Connector and the Web and Mobile Application Connector
- Node.js LTS (>v20.x)
- An Heroku account
- A Salesforce Data Cloud Developer Edition account
- Heroku CLI
- PostgreSQL psql client
Install dependencies by running:
npm install
Create an Heroku application with:
heroku create <app-name>
Install the Heroku PostgreSQL addon:
heroku addons:create heroku-postgresql:essential-0
Once the PostgreSQL database is created, setup the database schema with:
heroku pg:psql < data/schema.sql
Make sure to fetch the database configuration to your local project by running:
heroku config --shell > .env
Seed the database with mock data by running:
node data/seed.js
Run the project locally with:
npm run dev
To manually deploy to Heroku you can run:
git push heroku main