Giter Club home page Giter Club logo

books.flatironschool.com's Introduction

Books.flatironschool.com

Description

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.

Application Environments and Heroku Apps

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

Local Setup

  • 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-run rake db:seed.
  • Run local server with rails s and go to http://localhost:3000/ in your browser before logging in via GitHub.
  • Set User.last.update(:admin => true) in the rails console to become an admin.

TODO

  1. Integrate PDF.JS
  2. Add method for copying the url of pages
  3. Slugify book name for params (instead of having ID)
  4. Add way to make cover photo of PDFs
  5. Add tags
  6. Better UX for mobile
  7. Figure out why Automatic Zoom on the books/show page has a weird character in the letter m
  8. Fix or disable the mulitple thumbnail page view on the books/show page that cuts pages off vertically
  9. Enhance the speed of the heroku app
  10. Flesh out downloading count to then have licensing countdown
  11. Add feature to manually upload cover photo in case PDF processing/epub processing doesn't yield one
  12. Fix the fix unresolved uploads feature on the admin page
  13. Support CHMs

Author

Flatiron School

License

My Spiffy App is MIT Licensed. See LICENSE for details.

Resources

For My Own Reference

  • 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

books.flatironschool.com's People

Contributors

ahimmelstoss avatar aviflombaum avatar kthffmn avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

books.flatironschool.com's Issues

add three important styles

Styles to Fix

  • add flatiron logo to nav bar
  • remove grey background on pages, make it white
  • style slider button so that it's legible and the divs that appear and hide based on its position are of the same dimensions

cutoff page thumbnails

Fix or disable the mulitple thumbnail page view on the books/show page that cuts pages off vertically

slow heroku app

Heroku app is so slow. What's going on? Let's speed it up!

fix `unresolved uploads feature`

Fix the fix unresolved uploads feature on the admin page. Right now, you can't resolve an upload that isn't associated with any other upload. You should be able to make a new book as an admin to resolve unresolved types.

add tags

Seed tags and use frontmatter of PDFs/eBooks/etc. to find and add tags.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.