Giter Club home page Giter Club logo

book-finder's Introduction

Book-Finder

Goals:

Create an application that should all you to:

  • Type in a query and display a list of books matching that query.
  • Each item in the list should include the book's author, title, and publishing company, as well as a picture of the book.
  • From each list item, you should also be able to navigate to more information about the book, but this information does not necessarily need to appear on a page within your application. In other words, this could link out to an external site with more information about that particular book.

Process:

  • Created a Ruby on Rails web-application
  • Configured the Google Books API for consumption
  • Created API requests using HTTParty gem
  • Consumed JSON responses from the API
  • Mapped response to application-specific data by creating Book objects
  • Added appropriate structure/styling for usability of the application (HTML/CSS/Bootstrap)
  • Added appropriate unit tests for the controller, API wrapper, and class object created

Set Up

After cloning repository and navigating to directory, run the following code in terminal:

    $ bundle install
    $ rails server

go to http://localhost:3000/ in the browser to open the application.

To run tests run the following code in the terminal:

    $ rails test

Deployment

The application is deployed on Heroku at: http://mybookworm.herokuapp.com/

To Deploy to heroku, take the following steps:

  1. Make a Heroku account and download Heroku command line tools at https://devcenter.heroku.com/articles/heroku-command-line.

  2. Sign into Heroku from terminal

     $ heroku login
     Enter your Heroku credentials.
     Email:  [email protected]
     Password (Typing will be hidden):  
     Authentication successful.
    
  3. Navigate to app directory

  4. Choose an app name and create heroku app in terminal

     ~ $ cd path/to/my_rails_app
     ~/path/to/my_rails_app $ heroku create my-new-app
    
  5. Use git push to push current state of master branch to Heroku.

     ~/path/to/my_rails_app $ git push heroku master
    
  6. Open page in browser by going to link http://my-new-app.herokuapp.com/ or heroku open command.

Future Add-ons:

  • Add feature to allow for navigation to book information on a page within the application -- will need to update consumption of JSON responses to map responses to book description, publisher date, page count etc.

book-finder's People

Contributors

jchung722 avatar

Watchers

 avatar

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.