bizworld / jammming-app Goto Github PK
View Code? Open in Web Editor NEWA React web application that allows users to search the Spotify library, create a custom playlist, then save it to their Spotify account.
A React web application that allows users to search the Spotify library, create a custom playlist, then save it to their Spotify account.
Is this not finished?
render() {
return (
<div className="Track">
<div className="Track-information">
<h3>{/* track name will go here */}</h3>
<p>{/* track artist will go here */} | {/* track album will go here */}</p>
</div>
{this.renderAction()}
</div>
);
}
}
The h3 and p should be changed to
<h3>{this.props.track.name}</h3>
<p>{this.props.track.artist} | {this.props.track.album}</p>
And it works on the searchResults after this change.
Needs improvement.
Unfortunately the project wasn't working properly. They are minor fixes.
It is in a working state now with all my fixes.
You got a lot down and I know you had a few questions in chat. If you want to discuss this further with the advisors on how to solve these errors better feel free to reach out.
I also went directly to bizworld.surge.sh and it says project not found.
return jsonResponse.tracks.map(track => (
You have to double check the api. You were close here, I want to show you a snippet of the response
{
"tracks" : { <----- correct but
"href" : "https://api.spotify.com/v1/search?query=Salzburg&type=track&market=US&offset=0&limit=20",
"items" : [ { <--- it is broken down into items
"album" : {
"album_type" : "single",
"artists" : [ {
"external_urls" : {
"spotify" : "https://open.spotify.com/artist/5RPzPJCg4ER1LzQkorZ31p"
},
"href" : "https://api.spotify.com/v1/artists/5RPzPJCg4ER1LzQkorZ31p",
"id" : "5RPzPJCg4ER1LzQkorZ31p",
"name" : "Worakls",
"type" : "artist",
"uri" : "spotify:artist:5RPzPJCg4ER1LzQkorZ31p"
} ],
so you need to write it as
return jsonResponse.tracks.items.map(track => (
let playlistID;
You aren't passing the id through so it is bringing back an undefined error.
You need to grab the id from the jsonResponse.
let playlistID = jsonResponse.id;
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.