- Slack group: https://app.slack.com/client/T024FPYBQ/C03BUFQB50V/T2VHPBHA5
- Figma: https://www.figma.com/file/Q7LqTYZxPqUVjD8tF7ihmy/FSA-Capstone
- Todo Board: https://github.com/orgs/Team5-Capstone/projects/1/views/1
- just clone this
- rm -rf .git
- git init
- git add .
- git commit -m 'first commit'
- set up origin on github
Now that you've got the code, follow these steps to get acclimated:
- Update project name and description in
package.json, this is your database
Sync and seed your database by running npm run seed. Running npm run start:dev will make great things happen!
- start:dev will both start your server and build your client side files using webpack
- start:dev:logger is the same as start:dev, but you will see your SQL queries (can be helpful for debugging)
- start:dev:seed will start your server and also seed your database (this is useful when you are making schema changes and you don't want to run your seed script separately)
- Set up the Heroku command line tools
heroku login- Add a git remote for heroku:
-
If you are creating a new app...
heroku createorheroku create your-app-nameif you have a name in mind.heroku config:set JWT=<your secret here!>to set a secret for JWT signing
Database Setup
-
heroku addons:create heroku-postgresql:hobby-devto add ("provision") a postgres database to your heroku dyno (This creates your production database) -
heroku config:set SEED=trueto get heroku to sync and seed your database -
note everytime your app restarts, the database tables will be dropped and re-created. To avoid this you can
config:unset SEED
-
If you already have a Heroku app...
heroku git:remote your-app-nameYou'll need to be a collaborator on the app.
Now, you should be deployed!