How to Deploy a Node.js API to Heroku

Heroku is the simplest way I know to deploy an application that requries read and write access to a database, like you would need for an API that can do CRUD operations (Create, Read, Update, Destroy).

By the end of this tutorial, you will see how to:

  1. Set up an application on Heroku
  2. Provision a postgres DB on Heroku
  3. Run knex commands to create the schema and seed a production database