If you want to play with this, it's deployable to Heroku (just add free Postgres to your Heroku app).
- PostgreSQL
- Environment variable
DATABASE_URL
set with PostgreSQL URI - Node.js
- Setup PostgreSQL, database and user and set
DATABASE_URL
in environment (this is automatically done for you on Heroku when adding PostgresSQL add-on). - Install node packages with
yarn
. - Start server with
npm start
in production ornpm run dev
for development.
- typically, one would use webpack to build for production but as this is a demo, the babel/webpack packages are left in as normal dependencies and we just use bable-node
- quick demo -- not intended to be a ready to use system