View Code? Open in Web Editor
NEW
Theme Park Database in Ruby on Rails
License: MIT License
Ruby 71.85%
JavaScript 0.63%
CoffeeScript 1.83%
HTML 24.10%
Procfile 0.04%
SCSS 1.54%
tpdb's Introduction
To Run Locally on OSX (from scratch!)
- Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
- Install RVM:
\curl -sSL https://get.rvm.io | bash -s stable
- Install Ruby 2.5.3:
rvm install ruby-2.5.3
- Install Postgres: here and
brew install postgresql
- Install ImageMagick:
brew install imagemagick
- Install Bundler:
gem install bundler
Set up environment variables
- Google Maps Embed API key:
GMAPS_EMBED_KEY
- Bundle Install:
bundle install
- Ensure local Postgres server is running (eg. using a tool like pgAdmin)
- For development, create a user with name
tpdb_user
and password tpdb
with superuser permissions.
- Setup TPDB database:
rake db:setup
or bundle exec rake db:setup
- Start server on localhost:3000:
rails server
- Test with Rspec:
rspec
or bundle exec rspec
tpdb's People
Contributors
Watchers