Update README.md

pull/1/head
Matt Huntington 5 years ago committed by GitHub
parent 7d0844db01
commit 3b24ee1cef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,8 +10,10 @@
1. clone your fork of this repo onto your local computer somewhere outside the class repo 1. clone your fork of this repo onto your local computer somewhere outside the class repo
1. `cd` into the local repo 1. `cd` into the local repo
### local postgres
1. open your postgres app and start the db server 1. open your postgres app and start the db server
1. back in the terminal, run `nodemon`
#### if you deleted your old "contacts" database from class #### if you deleted your old "contacts" database from class
@ -24,12 +26,19 @@
1. `INSERT INTO people ( name, age ) VALUES ( 'Sally', 54 );` 1. `INSERT INTO people ( name, age ) VALUES ( 'Sally', 54 );`
1. `INSERT INTO people ( name, age ) VALUES ( 'Zanthar', 4892 );` 1. `INSERT INTO people ( name, age ) VALUES ( 'Zanthar', 4892 );`
### in your terminal
1. run `nodemon`
### in your browser
go to http://localhost:3000/ to view local app (note this uses your local database)
## set up heroku ## set up heroku
### in your terminal ### in your terminal
1. run `heroku create` (take note of the app name for later) 1. run `heroku create` (take note of the app name for later)
1. run `git push heroku master`
### in your browser ### in your browser
@ -50,4 +59,5 @@
1. `INSERT INTO people ( name, age ) VALUES ( 'Sally', 54 );` 1. `INSERT INTO people ( name, age ) VALUES ( 'Sally', 54 );`
1. `INSERT INTO people ( name, age ) VALUES ( 'Zanthar', 4892 );` 1. `INSERT INTO people ( name, age ) VALUES ( 'Zanthar', 4892 );`
1. exit heroku psql with `\q` 1. exit heroku psql with `\q`
1. run `git push heroku master`
1. run `heroku open` to see app 1. run `heroku open` to see app

Loading…
Cancel
Save