Skip to content

rafaelpetry/peoplesclimatemarchmap

Repository files navigation

Install OS packages

Clone the repository

  • Run: git clone [email protected]:rafaelpetry/peoplesclimatemarchmap.git
  • cd into the project directory so RVM can detect your Ruby version and create a Gemset for the project.
    • Use rvm info to check if everything is set up correctly.

Install RubyGems

  • Install Foreman
    • We use foreman to start all different processes with a single command.
    • Run: gem install foreman
  • Install Bundler
    • We use Bundler to manage project dependencies.
    • Run: gem install bundler
  • Install all other project gems
    • Run: bundle install

Create the Database

  • To Create a local Postgres database

    • Start postgres: brew services start postgresql
    • Run: rake db:create, rake db:migrate, rake db:populate, rake db:cache
    • To populate the heroku database run heroku run bundle exec rake db:populate then heroku run bundle exec rake db:cache
  • If you can't run rake db:cache locally, try uncommenting these two lines in Rakefile:

#Uncomment these two lines to use .env file locally
#Don't commit these to heroku
require 'dotenv'
Dotenv.load

Create the .env file

  • Create a file named .env at the root of the repo, with the following contents:
ACTION_NETWORK_KEY=_paste_key_here_
PORT=5000
SITE_URL=http://localhost:5000/

Replace the ACTION_NETWORK_KEY with the real key.

Working with the application

About

Embeddable map of parallel events and buses going to the People's Climate March in Washington, DC.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •