A database of books used in the Ruby classroom. Originally written by den1k and georgemayer. To specify a page number for a PDF, simply add it to the end of the URL, like so: http://beta-library.herokuapp.com/books/agile-web-development-with-rails-4#page=55.
Environment | Heroku App | Domain | Github Repo | Branch |
---|---|---|---|---|
Production | flatiron-books | http://books.flatironschool.com | http://github.com/flatiron-school/books.flatironschool.com | master |
Beta | beta-library | http://beta.books.flatironschool.com | http://github.com/flatiron-school/books.flatironschool.com | functional |
- In the terminal, run
brew install imagemagick
. - In the terminal, run
brew install ghostscript
. - Set AMAZON_KEY, AMAZON_SECRET, AMAZON_BUCKET, GITHUB_KEY, and GITHUB_SECRET in
config/application.yml
:
AMAZON_KEY: NUMBERSANDLETTERS
AMAZON_SECRET: NUMBERSANDLETTERSANDSYMBOLS
AMAZON_BUCKET: BUCKETNAMEHERE
GITHUB_KEY: NUMBERSANDLETTERS
GITHUB_SECRET: NUMBERSANDLETTERS
- Run
rake db:migrate
. - Run
rake db:seed
to add the organization flatiron-school-students to the organizations table. If you would like to add more oragnizations, add them db/seeds.rb and re-runrake db:seed
. - Run local server with
rails s
and go tohttp://localhost:3000/
in your browser before logging in via GitHub. - Set
User.last.update(:admin => true)
in therails console
to become an admin.
Integrate PDF.JSAdd method for copying the url of pagesSlugify book name for params (instead of having ID)Add way to make cover photo of PDFsAdd tags- Better UX for mobile
- Figure out why
Automatic Zoom
on thebooks/show
page has a weird character in the letterm
- Fix or disable the mulitple thumbnail page view on the
books/show
page that cuts pages off vertically - Enhance the speed of the heroku app
- Flesh out downloading count to then have licensing countdown
- Add feature to manually upload cover photo in case PDF processing/epub processing doesn't yield one
- Fix the
fix unresolved uploads
feature on the admin page - Support CHMs
My Spiffy App is MIT Licensed. See LICENSE for details.
- Pushing to Heroku Staging Remote:Beta -
git push beta beta:master
- Logs for Heroku Staging Remote:Beta -
heroku logs --tail --app beta-library
- Running Rails Console in Heroku Staging Remote:Beta:
heroku run rails c --app beta-library