Code Monkey home page Code Monkey logo

sweater_weather's Introduction

Sweater Weather

Background and Description

Sweater Weather is a backend application that exposes a series of endpoints for a front end team. The endpoints will contain information that will allow a user to see the curent weather, as well as the forecasted weather at the destination, and travel time to reach the destination.

Requirements and Setup

Ruby/Rails

  • Ruby 2.7.2
  • Rails 5.2.6.3

Setup

  1. Clone this repo. On your local machine, open the terminal and enter the following command:
$ git clone [email protected]:croixk/sweater_weather.git
  1. You can now enter the project directory $ cd sweater_weather

  2. Now, install the required gems using $ bundle install

  3. Run database migrations with $ rails rake db:{drop,create,migrate,seed}

  4. Before consuming the APIs, you will need to start the local server $ rails s

APIs utilized

This project utilizes the following public APIs - these APIs require are free, but do require registration for a key

Open Weather

https://openweathermap.org/api/one-call-api

Pexels

https://www.pexels.com/api/

MapQuest's Geocoding API

https://developer.mapquest.com/documentation/geocoding-api/

Endpoints

This project exposes the following endpoints for a front end team

Retrieve weather for a city

GET /api/v1/forecast?location=denver,co
Content-Type: application/json
Accept: application/json

Background image for a city

GET /api/v1/backgrounds?location=denver,co
Content-Type: application/json
Accept: application/json

Register User

POST /api/v1/users
Content-Type: application/json
Accept: application/json

Login

POST /api/v1/sessions
Content-Type: application/json
Accept: application/json

Road Trip

POST /api/v1/road_trip
Content-Type: application/json
Accept: application/json

sweater_weather's People

Contributors

croixk avatar

Stargazers

 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.