From 37b6130ba93bf9747dca48d3b8e9f9ac880fc05f Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Fri, 9 Oct 2020 19:51:59 -0400 Subject: [PATCH] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 58a8546..73a05a8 100644 --- a/README.md +++ b/README.md @@ -82,3 +82,14 @@ Instead of `matthuntington` insert your computer's username (what you found when 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);` + 1. `INSERT INTO people ( name, age ) VALUES ( 'Matt', 38 );` + 1. `INSERT INTO people ( name, age ) VALUES ( 'Sally', 54 );` + 1. `INSERT INTO people ( name, age ) VALUES ( 'Zanthar', 4892 );` +1. exit heroku psql with `\q`