This is the codebase that runs The New York Public Library Community Oral History Project. It provides an interface for: browsing, searching, listening to, annotating, and managing oral history audio files.
- Ruby (currently on 2.2.4)
- Rails (currently on 3.2.22)
- PostgreSQL Database
- ImageMagick - for thumbnail generation
- Amazon S3 account (for storing images) - unnecessary for local development
- Google account (for admin user management) - this is optional if you configure Devise otherwise
- Create
config/database.yml
based on config/database.yml.sample - Create
config/application.yml
based on config/application.yml.sample - contains config variables for Amazon, Google, and Devise. Runrake secret
to generate new secret tokens - Go to app/uploaders/image_uploader.rb to configure your website's image thumbnails
- Go to app/controllers/application_controller.rb and find the method
is_admin?
and edit the logic appropriately to determine if user is an admin (can add/edit/delete content)
- In the project's directory, run
bundle install
- Run
rake db:create
andrake db:migrate
to setup the database based onconfig/database.yml
- Run
rails s
and go to http://localhost:3000 to view the app - Go to http://localhost:3000/admin to start adding content to the app-- you will authenticate through Gmail by default.
- Click Manage Neighborhoods -> Create a new neighborhood and add a new neighborhood
- Click Manage Interviews -> Add a new interview to add new interviews