That website https://cocoapods.org/ - pretty useful
HTML JavaScript Ruby CSS
Latest commit 9ea5790 Jul 18, 2016 @orta orta committed on GitHub Merge pull request #284 from CocoaPods/overview
Renames readme to overview in the tab selector
Failed to load latest commit information.
.github
assets Skip caching on the main podfile image, by changing it's name May 1, 2016
config
data
lib
shared @ 93cf3a3
views
.gitignore
.gitmodules
.tm_properties
Gemfile
Gemfile.lock
Procfile App runs and uses the moddleman build. Sep 13, 2014
README.md
Rakefile
app.rb
config.ru
domain.rb
sample.env
spec_extensions.rb

README.md

cocoapods.org

Setup

Ideally this website should be run through a sub-folder of Strata.

  1. Clone a copy of Strata and run rake clone. Or if you just want this website rake clone["cocoapods.org"].
  2. Run rake db:migrate in Strata to update the database to the latest version.
  3. Add a .env file with in CocoaPods.org ENVIRONMENT variables, see sample.env.

Alternatively, direct set up:

  1. git clone git@github.com:CocoaPods/cocoapods.org.git && cd cocoapods.org
  2. rake bootstrap

Running

  1. bundle exec rake serve

The server will run on http://localhost:3000

Things to note

  • Large scale design changes should be discussed in a new issue first.
  • By default the server will use the production search database in a development environment. This is so you don't have to run your own instance of search.

What is this?

This app is a Sinatra app. We use slim as a templating language, and flounder as our ORM against the trunk database.

A lot of the logic around search is based on work from @floere in picky. All of the CocoaPods-specific parts of search are in search.config.js.