React app to help you and your dogs check-out local dog parks and make new friends!
-
Make sure xcode is up to date.
xcode-select --install
-
Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
This project uses Ruby 2.3.3, which is best installed through rbenv.
brew install rbenv
brew install ruby-build
rbenv install 2.3.3 rbenv global 2.3.3
⚠️ If you see an error when trying to install Ruby, something along the lines of:ERROR: Ruby install aborted due to missing extensions Try the following line to install Ruby 2.3.3
RUBY_CONFIGURE_OPTS="--with-openssl-dir=/usr/local/opt/openssl" rbenv install 2.3.3
At this point, you want to restart your terminal to ensure everything takes effect.
-
Install RSpec for testing
gem install rspec
Restart terminal again.
⚠️ Important note: You should NEVER need to sudo gem install ___ anything. If you get a permission issue, that means your system isn't using the rbenv/rvm version of rubygems. -
Install Postgres Database
brew install postgres
-
Create a physical postgresql database
initdb /usr/local/var/postgres
You can start and stop the database with the following commands. These are nice to create as an alias within your .bash_profile
pg_ctl -D /usr/local/var/postgres start pg_ctl -D /usr/local/var/postgres stop
-
Clone this repo
-
Run
bundle install
-
Run
rake db:create
-
Run
rake db:migrate
-
Run
rake db:seed
-
Install JavaScript Dependencies in
client/src
. You're welcome to use Yarn or NPM -
Run
rake start
-
Open your browser to
localhost:5000
For more information on how to contribute to this project, please visit: https://github.com/katleiahramos/Bark-Park/blob/master/contributing.md Bug reports and pull requests are welcome on GitHub at https://github.com/katleiahramos/Bark-Park
The project is available as open source under the terms of the MIT LICENSE