From 18178da29e0f91ffff0beaa01f480e315aa4d42e Mon Sep 17 00:00:00 2001 From: Karolin Rafalski Date: Mon, 19 Oct 2020 12:07:55 -0400 Subject: [PATCH] provide minor clarification --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d520550..f7d8f22 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ 1. clone your fork of this repo onto your local computer somewhere outside the class repo 1. `cd` into the local repo +1. don't forget to run `npm install` ### local postgres @@ -17,6 +18,8 @@ #### if you deleted your old "contacts" database from class +1. in your terminal, if running `psql` gives you "command not found", run `ln -s /Applications/Postgres.app/Contents/Versions/latest/bin/psql /usr/local/bin/psql` + 1. in the postgres app, double click one of the existing databases to enter `psql` 1. once inside `psql`, run: 1. `CREATE DATABASE contacts;` @@ -34,6 +37,8 @@ go to http://localhost:3000/ to view local app (note this uses your local database) +confirm all CRUD functionality + ## set up heroku ### in your terminal @@ -44,14 +49,13 @@ go to http://localhost:3000/ to view local app (note this uses your local databa 1. go to heroku.com in your browser and sign in 1. find this newly created heroku app in your list of available apps and click on it -1. go to resources +1. go to resources to use the `Add-ons` search bar 1. search for postgres and choose Heroku Postgres 1. choose "Hobby Dev - Free" 1. click provision ### in your terminal -1. in your terminal, if running `psql` gives you "command not found", run `ln -s /Applications/Postgres.app/Contents/Versions/latest/bin/psql /usr/local/bin/psql` 1. run `heroku pg:psql` 1. once inside heroku's psql, run 1. `CREATE TABLE people (id SERIAL, name VARCHAR(16), age INT);`