all-your-base's People
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.