This is a basic Ruby-on-Rails web app that manages climbs located in various crags.
- Install Rbenv (Installation Guide)
- Install Homebrew (Installation Guide)
- Install Ruby 2.7.4: Run
rbenv install 2.7.4
in your terminal - Install Rails 5.2.7: Run
gem install rails 5.2.7
in your terminal - Install PSQL: Run
brew install postgresql
in your terminal - Start PSQL: Run
brew services start postgresql
in your terminal - Set project directory's local Ruby version to 2.7.4: Navigate to the directory that will store your project and run
rbenv local 2.7.4
- Clone this repo into your local directory
cd
into the cloned project directory- Create project databases: run
rails db:migrate
in your terminal - run
rails s
to intialize the rails server
With your terminal open and rails s
having been run and listening, type localhost:3000/crags
to view all Crags in the database, and localhost:3000/climbs
to view all climbs in the database.