From 3b24ee1ceff1bbf2c848cb83dd00f1345e453294 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Sat, 26 Sep 2020 01:23:35 -0400 Subject: [PATCH] Update README.md --- README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8ee4c83..58024c5 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,10 @@ 1. clone your fork of this repo onto your local computer somewhere outside the class repo 1. `cd` into the local repo + +### local postgres + 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 @@ -24,12 +26,19 @@ 1. `INSERT INTO people ( name, age ) VALUES ( 'Sally', 54 );` 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 ### in your terminal 1. run `heroku create` (take note of the app name for later) -1. run `git push heroku master` ### in your browser @@ -50,4 +59,5 @@ 1. `INSERT INTO people ( name, age ) VALUES ( 'Sally', 54 );` 1. `INSERT INTO people ( name, age ) VALUES ( 'Zanthar', 4892 );` 1. exit heroku psql with `\q` +1. run `git push heroku master` 1. run `heroku open` to see app