Torchic-Trainers-8 / grace-shopper

grace-shopper project for FSA
MIT License
0 stars 0 forks source link

FS-App-Template

Setup

To use this as boilerplate, you'll need to take the following steps:

git remote add boilermaker git@github.com:FullstackAcademy/fs-app-template.git
git fetch boilermaker
git merge boilermaker/main
git branch -m master main

Customize

Now that you've got the code, follow these steps to get acclimated:

createdb <YOUR APP NAME HERE FROM package.json>
createdb <YOUR APP NAME HERE FROM package.json>-test

Start

Sync and seed your database by running npm run seed. Running npm run start:dev will make great things happen!

Heroku

  1. Set up the Heroku command line tools
  2. heroku login
  3. Add a git remote for heroku:

Database Setup

  1. heroku addons:create heroku-postgresql:hobby-dev to add ("provision") a postgres database to your heroku dyno (This creates your production database)

  2. heroku config:set SEED=true to get heroku to sync and seed your database

  3. note everytime your app restarts, the database tables will be dropped and re-created. To avoid this you can config:unset SEED

Now, you should be deployed!