Giter VIP home page Giter VIP logo

auto_lite's Introduction

Auto Lite App

Description

A Ruby on Rails "Autolist Lite" app that allows to retrieve auto's information from an API end-point. Furthermore, it provides functionality to search prices ranges.

Endpoint

The app API accepts GET request to the URI /vehicles/search and accepts minimum price and maximum price to be able to get a range of autos and display them on the search page.

Endpoint:

GET 'localhost:3000/vehicles/search'
GET 'localhost:3000/vehicles'
GET 'localhost:3000/vehicles/:vin'

vin -> It´s an unique auto's identifier.

Versions and Technologies

  • Rails 5.0.7.
  • Ruby 2.3.1p112 (2016-04-26 revision 54768).
  • Embedded ruby to render HTML.
  • Postgres (PostgreSQL) 9.6.3.
  • RSpec, factory bot and Faker.

Instructions to execute code

  • Download the repository to your preferred directory from Github.
  • Open a terminal, go to your proyect's directory and run bundle install --> Install all your dependencies gems.
  • Run rails server and then go to localhost:3000/.
  • Run rspec spec on your terminal and all testing suits shold be green.
  • On the home page enter the min and max values to search for the price ranges.

Key aspects

  • Time invested so far: 6.5 hours.
  • API data to show the information of each auto on the Search and detail page.
  • Basic functionality have test coverage using RSpec.

Future requirements

  • Add count of the Viewed X times when clicking on each of the auto's details page.
  • Add validation regarding the searchable fields on the Home page.
  • Add Bootstrap and CSS styling on the pages.
  • Refactor some of the code on the Controllers to keep it DRY.
  • Add pagination to the search page.

auto_lite's People

Contributors

yannycastrillon avatar

Watchers

 avatar  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.