This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Live Page: https://jcharles22.github.io/Jared-Charles-s-Portfolio/ | |
Repo: https://github.com/jcharles22/Jared-Charles-s-Portfolio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Visit the YouTube API documentation discussed above and find the subscription list endpoint documentation.List 1 required parameter and 2 optional parameters for this endpoint. For each parameter listed, state the data type and give an example of the allowed values. | |
Required Part = string | |
Opitional ChannelId = string mine = boolean | |
Visit the Google Maps Geocoding API documentation found here: https://developers.google.com/maps/documentation/geocoding/intro. Construct the full URL for requesting the geographic coordinates of The Statue of Liberty in JSON format. Do the same for your own address. | |
Statue of Liberty the end needs to be changed to your api key | |
https://maps.googleapis.com/maps/api/geocode/json?&address=The%20Statue%20of%20Liberty,+CA&key=YOUR_API_KEY | |
Cartersville, Ga the end needs to be changed to your api key | |
https://maps.googleapis.com/maps/api/geocode/json?&address=cartersville%2C%20ga,+CA&key=YOUR_API_KEY | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Help users see what venues there are to go to and the weather for that city from four square api and apixu to get current weather. |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
One user ran into a problem when the didnt sperate the city and state with a comma. | |
one user thought it would be nice to be able to save venues they were interested in to a list. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Drill 1 | |
app.get('/sum', (req, res) => { | |
const a = parseInt(req.query.a); | |
const b = parseInt(req.query.b); | |
if(!a || !b) { | |
res.send('Please send 2 numbers'); | |
} else { | |
res.send(`The sum of ${a} and ${b} is ${a+b}`) | |
} | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
//data to import | |
const playstore = require('./playstore'); | |
const app = express(); | |
app.get('/apps', (req, res, next) => { | |
let { sort, genres='' } = req.query | |
if(sort) { | |
if(!['rating', 'app'].includes(sort.toLowerCase())) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const playstore = require('./playstore'); | |
const app = express(); | |
app.get('/apps', (req, res, next) => { | |
let { sort, genres='' } = req.query | |
if(sort) { | |
if(!['rating', 'app'].includes(sort.toLowerCase())) { | |
res.status(400).send('Sort has to be rating or app.') |