Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@

<div id="gallery"><!-- this is where images will be appended--></div>

<form>
<label for="userName">Create Name</label>
<input type="text" name="userName" required>
<button id="saveFavs" type= "submit">SAVE</button>
<form id="username">
<label for="username">Save your favorite images! Create a username</label>
<input type="text" name="username" required>
<input type="submit" value= "submit"></input>
</form>
</section>

Expand Down
1 change: 0 additions & 1 deletion models/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const API_URL = 'http://localhost:3000/api/v1';
}else{
camShort = "rhaz";
}


const options = {
rover: $('#rover option:selected').text(),
Expand Down