nicorithner / sweater_weather Goto Github PK
View Code? Open in Web Editor NEWTuring's Exercise - Rails API solo project
Turing's Exercise - Rails API solo project
Check and refactor:
Blank destination and blank origin tests are passing with correct http message but they are not working in postman.
If we attempt to the the trip duration for a destination overseas we should get trip not possible by car.
example: origin: 'New York, NY', destination: 'London, UK'
List the endpoints with text code sample - like in the instructions - with succinct description:
Create
Check and refactor:
Display specs in more detail.
What ruby and rails version, what gems. Add brief tag next to each gem to say what the gem does - short sentence. what APIs did I use.
Check and refactor:
The facade will run:
@user.roadtrips.create(origin: route.origin, destination: route.destination, duration: route.duration, temperature: destination_weather.temp, description: destination_weather.description)
Add postman button to readme so the reader can test out the endpoints
Creating the Run in Postman Button
$ POST /api/v1/sessions
Content-Type: application/json
Accept: application/json
{
"email": "[email protected]",
"password": "password"
}
Upgrade image querying to include other params to have a more specific picture
Note:
Nov/13/2020. Most apis I find return a lot of bad images that wouldn't be relevant to query.
For example 'denver evening snow' gets me a chicago picture, or someone swimming butterfly...
Check and refactor:
Add sad path for image querying. If no images are returned a json with a body message "no images available for this query' is returned along with the appropriate status (406? or 204?)
Create road_trip routes
Create road_trip_controller, action 'create'
Write Heading and add tech badges
Create a table of content with links to each H2 heading
Requirements:
Endpoint needs to use the city and state from the GET request’s query parameter and send it to MapQuest’s Geocoding API to retrieve the latitude and longitude for the city.
Retrieve forecast data from the OpenWeather One Call API using the latitude and longitude from MapQuest.
Testing should look for more than just the presence of attribute fields in the response.
Create table 'locations'
city --> string
state --> string
lat --> numeric
lng --> numeric
When a query is made we check first whether the city/state combination exist in the database. If it does we use those coordinates. If it doesn't we get them making the api call to mapquest and then we create a new location object and save it to the database for future use.
application.yml is not being ignored in my commits.
Write overview to about the project
Pixabay doesn't retrieve anything for some locations. For example 'Arvada, co' returns a bad call.
rails g migration CreateRoadTrips user:references origin destination duration temperature description
Explain how to fork, clone, basic installation including gems and how to run the tests.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.