Giter Site home page Giter Site logo

all-your-base's People

Contributors

nancylee713 avatar

Watchers

 avatar  avatar

all-your-base's Issues

Setup

  • Set up your local database
  • Run migrations for dev and test environments
  • Configure production environment
    • Create a Heroku app
    • Add a Postgres instance to your new Heroku app
    • Update knexfile.js file to use Heroku database instance
    • run git push heroku master
    • install dependencies and knex, and run migrations again
heroku run bash
npm install
nom install -g knex
knex migrate:latest

Forecast endpoint

Project requirements

  • API key must be sent along with the request
  • If no API key or an incorrect key is provided return 401 (Unauthorized)
GET /api/v1/forecast?location=denver,co
Content-Type: application/json
Accept: application/json

body:
{
  "api_key": "jgn983hy48thw9begh98h4539h4"
}
  • Your response should contain at least 8 hourly objects and 7 daily objects

Workflow

  • Create a new branch called forecast_endpoint
  • Start with writing a request spec

Update README

Give brief background about the project and setup instructions

Favorite locations endpoint

Project requirements

  • API key must be sent along with the request
  • If no API key or an incorrect key is provided return 401 (Unauthorized)
POST /api/v1/favorites
Content-Type: application/json
Accept: application/json

body:

{
  "location": "Denver, CO",
  "api_key": "jgn983hy48thw9begh98h4539h4"
}

Workflow

  • Create a new branch called fav_location_endpoint
  • Start off by writing a request spec (post request)

Listing favorite locations endpoint

Project requirements

  • API key must be sent along with the request
  • If no API key or an incorrect key is provided return 401 (Unauthorized)
GET /api/v1/favorites
Content-Type: application/json
Accept: application/json

body:

{
  "api_key": "jgn983hy48thw9begh98h4539h4"
}
DELETE /api/v1/favorites
Content-Type: application/json
Accept: application/json

body:

{
  "location": "Denver, CO",
  "api_key": "jgn983hy48thw9begh98h4539h4"
}

Workflow

  • Create a new branch called fav_location_list_endpoint
  • Start with writing a request spec (GET & DELETE request)

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.