From 36f132844974672ecf2203ad50519c6aa0338625 Mon Sep 17 00:00:00 2001 From: Lizabeth Petersen Date: Mon, 18 Dec 2017 11:34:05 -0800 Subject: [PATCH 1/2] updates readme with steps to do a sql dump and connect local db to heroku db --- README.md | 13 +++++++++++++ models/image.js | 1 - 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d91ea86..ca9f032 100644 --- a/README.md +++ b/README.md @@ -35,3 +35,16 @@ As developers, we wish to utilize a third-party API. – The ability to randomize the favorite images or turn them into a slideshow of the user and/or the general favorites. – Add a small grid calendar to our inputs for user to select a date for filtering images. + +#### STEPS +To add the tables to another local repo: + - Do a sql:dump from the locally created database (create a text file with the data) + - Then sql:load into the other local repo + +Create a Heroku app (this will store the persistent data for our users): + – Create a new app + – Add a databse + – Do this: heroku pg:push mylocaldb (name) DATABASE_URL --app your-app-name + – Connect heroku with postgres: heroku pg:psql --app your-app-name + – Use postgresql commands to check tables and data + diff --git a/models/image.js b/models/image.js index e83a231..3d24fd0 100644 --- a/models/image.js +++ b/models/image.js @@ -22,7 +22,6 @@ const API_URL = 'http://localhost:3000/api/v1'; }else{ camShort = "rhaz"; } - const options = { rover: $('#rover option:selected').text(), From 2f61cea19af6b261566d155f64cba602deb40fd4 Mon Sep 17 00:00:00 2001 From: Lizabeth Petersen Date: Mon, 18 Dec 2017 17:41:36 -0800 Subject: [PATCH 2/2] updates submit username form --- .DS_Store | Bin 0 -> 6148 bytes index.html | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 -
- - - + + + +