Ideally this website should be run through a sub-folder of Strata.
- Clone a copy of Strata and run
rake clone
. Or if you just want this websiterake clone["cocoapods.org"]
. - Run
rake db:migrate
in Strata to update the database to the latest version. - Add a
.env
file with in CocoaPods.org ENVIRONMENT variables, seesample.env
.
Alternatively, direct set up:
git clone git@github.com:CocoaPods/cocoapods.org.git && cd cocoapods.org
rake bootstrap
bundle exec rake serve
The server will run on http://localhost:3000
- 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.
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.