/boolder-rails

Ruby on Rails app powering Boolder's backend and website

Primary LanguageHTMLMIT LicenseMIT

Boolder Rails

Boolder is the best way to discover bouldering in Fontainebleau.

This is the code powering the Boolder website and all the backend & data processing.

NB: if you just want a quick access to the data, check out boolder-data

Stack

How to run the app (on a Mac)

Basics

Install Postgre

  • cd to the app directory
  • brew install postgresql
  • brew install postgis
  • brew services start postgresql
  • createdb dump-prod

Set up the app

  • cd to the app directory
  • install rails: sudo gem install rails
  • bundle install
  • rake db:setup

Import prod data

  • dropdb dump-prod && createdb dump-prod
  • psql -d dump-prod < db/dump-prod.sql
  • rake db:migrate

Run the app

  • bin/dev

Mapbox credentials

  • Create an account on https://www.mapbox.com.
  • Go to the Tokens page and create a public token with all the public scopes (or just use the default token).
  • Back in the Rails app, copy the .env.example to .env and fill out MAPBOX_DEV_ACCESS_KEY with your token
  • Restart the server

Optional: JOSM

Josm is an open source tool used by the OpenStreetMap community. We use it to edit GeoJSON files.

  • Follow the instructions here: https://josm.openstreetmap.de/wiki/Download#macOS
  • Go to File > Preferences > Plugins
  • Click on the checkbox next to Fastdraw and PicLayer, and then click on OK
  • Restart Josm
  • In the menu bar (on the left), click on Fast Drawing mode and then type Q to enter the options dialog. Click on Draw closed polygons only, choose 3 for Starting Epsilon and Simplify with initial epsilon for Enter key mode

Contribute

Want to help us improve the app for thousands of climbers? Great!

Here are a few ways you can contribute:

  • Open an issue if you find a bug
  • Open an issue if you want to suggest an improvement
  • Open a Pull Request (please get in touch with us beforehand, though)

We already have a lot of features waiting to be built, and lots of new ideas to try out! We'd be happy to share the fun with you :)

As the project is still young, the best way to get started is to drop us a line at hello@boolder.com

You can also contribute to our mapping efforts at https://www.boolder.com/en/contribute