In order to set this up to run locally:
-
Make sure you have Ruby '2.5.8' installed locally
-
Make sure you have Rails '5.2.4.4' installed locally
-
Make sure you have pgAdmin 4 and Postgres installed locally
-
Clone repo locally
-
Start pgAdmin or Postgres server
-
Replace credentials in 'config/database.yml' with whatever you have pgAdmin set up on
default: &default
adapter: postgresql
encoding: unicode
# For details on connection pooling, see Rails configuration guide
# http://guides.rubyonrails.org/configuring.html#database-pooling
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
host: localhost
username: postgres
password: ********-
Open the repo in a code editor like vscode
-
In the terminal run
bundle install -
Run
rails db:create -
Run
rails db:migrate -
Run
rails db:seed
You should be all set up now, so start your server.
-
Run
rails server -p 3000orrails server -
Navigate to localhost:3000 in your browser
Then you should see the app!
If you don't, shoot me an email!
Also, by default, the db seeding will not include images and the record will instead display a default static pic. Once the app is running, you can upload photos from your local machine to both update existing records and when creating new records.