clerb-rails is the website for the Cleveland Ruby Brigade, built with Ruby on Rails.
- Clone the repository (
git clone https://github.com/clerb/clerb-rails.git
) - Install gems:
bundle install
- Install npm packages:
yarn install
- Install PostgreSQL
- Setup a new role with SuperUser permissions for PostgreSQL
- Create the database and run any pending migrations:
bundle exec rake db:create db:migrate
- Pull down and seed the database with events from the meetup API:
bundle exec rake refresh_meetup_events
- Start the Rails server:
bundle exec rails s
- Visit http://localhost:3000 in your browser
The event details page contains an embedded Google Map of the event location. Google's maps API requires an authenticated API token for embeds to work. To set this up for development:
- Visit the Google developer console
- Click the project dropdown in the top left and select "New Project" in the modal. Name it something like "CLERB-dev" (doesn't really matter)
- Search for "Maps Embed API", click on the result, and select "Enable"
- Click the "Credentials" tab. Select "Create credentials" -> "API key" and copy the generated key
- Create a file named
.env
in the Rails project directory with the following contents:
GOOGLE_MAPS_API_KEY=<your_copied_key>
- Fork it (https://github.com/clerb/clerb-rails.com/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new pull request on GitHub