Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.6 KB

README.md

File metadata and controls

65 lines (43 loc) · 1.6 KB

Lumina Solar - Data Cloud

Deploy

Integrate Heroku and Data Cloud using the Heroku PostgreSQL Connector and the Web and Mobile Application Connector

Requirements

Installation

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

Manual Deployment

To manually deploy to Heroku you can run:

git push heroku main