A Boilerplate is already set up for you with everything you will need to get started. This boilerplate is set up to use:
The Migration and seeds for the users table, and all login functionality is already set up!
The mobile responsiveness is also being handled by some neat JS and Bulma classes, be sure to incorporate that view in your project goals!
Run the following commands in your terminal:
npm install
npx knex migrate:latest
npx knex seed:run
cp .env.example .env
To run in development:
npm run dev
To run in production:
npm start
Create your app with heroku create [name]
You can check that this was successful by running heroku apps
to view a list of your apps
Add postgresql (hobby dev) to your app at https://dashboard.heroku.com/apps/[APP NAME HERE]/resources
Check that pg has been added by running heroku addons
to ensure the postgresql db is on your app
I have created several npm scripts that will be useful for deploying your app to heroku easily.
To push your local master branch to your heroku app:
npm run h:deploy
Run heroku migrations:
npm run h:migrate
Run heroku seeds:
npm run h:seed
If ever you need to rollback, you can also:
npm run h:rollback
Your app should be deployed!