Giter Club home page Giter Club logo

sweater_weather's Introduction

README

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover:

  • Ruby version

  • System dependencies

  • Configuration

  • Database creation

  • Database initialization

  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

  • Deployment instructions

  • ...

sweater_weather's People

Contributors

erin-king avatar

Watchers

James Cloos avatar  avatar

sweater_weather's Issues

1.2: Background Image

  • Background image will be an image from Flickr using location of current weather page.
  • Make sure to filter- city, 'nature', etc.

3: SESSIONS: Login

(post-create)

As a user,
I can log in.

Criteria: email, password

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

{
"email": "[email protected]",
"password": "password"
}

RESPONSE:
status: 200 / 401 if invalid
body:

{
"api_key": "jgn983hy48thw9begh98h4539h4",
}

4: FAVORITES: List Favorites

(GET- index)

As a user,
I can see a list of my favorited location

Criteria: api_key

GET /api/v1/favorites
Content-Type: application/json
Accept: application/json

body:

{
"api_key": "jgn983hy48thw9begh98h4539h4"
}
Requirements:

API key must be sent
If no API key or an incorrect key is provided return 401 (Unauthorized)
Response:

status: 200
body:
[
{
"location": "Denver, CO",
"current_weather": {
# This can vary but try to keep it consistent with the
# structure of the response from the /forecast endpoint
},
"location": "Golden, CO",
"current_weather": {
{...}
}
}
]

4: FAVORITES: Add a Favorite

(POST - create)

As a user,
I can favorite a location.

Criteria: location, api_key

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

body:

{
"location": "Denver, CO", # If you decide to store cities in your database you can send an id if you prefer
"api_key": "jgn983hy48thw9begh98h4539h4"
}

Requirements:

API key must be sent
If no API key or an incorrect key is provided return 401 (Unauthorized)

1: Create Welcome Page

As a user,
When I navigate to the root path,
I will see a welcome page that introduces the app.

4: FAVORITES: Remove a Location from Favorites

(DELETE-DESTROY, recall index)

As a user, I can remove a favorited location.

Criteria: location, api_key

DELETE /api/v1/favorites
Content-Type: application/json
Accept: application/json

body:

{
"location": "Denver, CO", # If you decide to store cities in your database you can send an id if you prefer
"api_key": "jgn983hy48thw9begh98h4539h4"
}
Requirements:

API key must be sent
If no API key or an incorrect key is provided return 401 (Unauthorized)
Response:

status: 200
body:
[
{
"location": "Denver, CO",
"current_weather": {
# This can vary but try to keep it consistent with the
# structure of the response from the /forecast endpoint
},
"location": "Golden, CO",
"current_weather": {
{...}
}
}
]

1: Google Geocoding: GET Request

Needs to pull out the city and state from the GET request and send it to Google’s Geocoding API to retrieve the lat and long for the city.

3: Login

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

{
"email": "[email protected]",
"password": "password"
}

RESPONSE:
status: 200
body:

{
"api_key": "jgn983hy48thw9begh98h4539h4",
}

2: USERS: Account Creation

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

{
"email": "[email protected]",
"password": "password"
"password_confirmation": "password"
}

RESPONSE:

status: 201
body:

{
"api_key": "jgn983hy48thw9begh98h4539h4",
}

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.