Code Monkey home page Code Monkey logo

sweater_weather's Introduction

Sweater Weather

This project is the final project for module 3 for the Turing School of Software & Design. The objective for this project is to consume 3rd party APIs and expose new APIs based on an incoming set of requirements set up by a front-end engineer.

Sweater Weather's purpose is to be able to take in a location and return a current forecast, five day forecast and the forecast for the next 8 hours. It also allows for someone to create a background for a user based on a given location. Additionally it allows for a user to be able to check a travel route. This check will return the duration of the trip based on a car traveling at posted speeds as well as give the weather information when they should arrive there.

Incoming Front-End Requests

Screen Shot 2022-03-08 at 11 39 57 PM

Screen Shot 2022-03-08 at 11 40 27 PM

Screen Shot 2022-03-08 at 11 41 03 PM

Screen Shot 2022-03-08 at 11 41 27 PM

Paths

  • Retrieve a background image: GET api/v1/backgrounds?location={query}
  • Retrieve the weather: GET api/v1/forecast?location={query}
  • Create a user: POST api/v1/users
  • Login a user: POST api/v1/sessions
  • Check a road trip: POST api/v1/road_trip

API Keys

Skills Used

  • API Consumption and Exposure via Facade/Service Design Pattern
  • Ruby on Rails
  • Sad Path/Edge Case Management

Main Gems Used

  • Faraday - Pry
  • Bcrypt - Figaro
  • RSpec - jsonapi-serializer
  • ShouldaMatchers - SimpleCov

Local Setup for any other use

  1. Fork and Clone the repo
  2. Install gem packages: bundle install
  3. Setup the database: rails db:{create, migrate}
  4. Rails s

Versions

  • Ruby 2.7.2

  • Rails 5.2.6

Author Information

[Josh Walsh](https://www.linkedin.com/in/jaw772/)


[Josh Walsh](https://github.com/jaw772)

sweater_weather's People

Contributors

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