Giter VIP home page Giter VIP logo

10-12-1_project_jammming's Introduction

JAMMMING

Javascript/React API with Spotify

Favicon

Sections

Overview

Jammming is a REACT web applicaiton. Knowledge of react components, passing state, and requests with the Spotify API were used to build this webstie. The API allows users to search the Spotify Library, create a custom playlist, then save it to their Spotify Account. Sections

knowledge Demonstrated

Set up Directory structure initialized html and css

Created Static Components

Pass Down Search Results & Render Result List

  • state is passed through a series of components to render an array of tracks.
  • Constructor Functions and .map() Sections

Pass Down Playlist to Track LIst

  • passed the state of a user’s custom playlist title and tracks from the App component down to components that render them Sections

Add Tracks to Playlist

  • implemented a process for adding a song from the search results track list to the user’s custom playlist. Sections

Remove Tracks from Playlist

  • Implemented a process that removes a song from a user's custom playlist when the user selects the "-" sign inside of a rendered track. Sections

Changed the Name of the Playlist

  • Implemented the code that allows a user to change the name of their playlist, and save the updated value to the App component's state.Sections

Created a Method that Saves the Playlist to a User's Account

  • created a method that saves a user's playlist to their Spotify account and resets the state of the playlist name and tracks array.Sections

Hook up Search Bar to Spotify Search

  • created a method thta updates the searchResults parameter in the app component with a user's search results. Wrote the logic that allows a user to enter a serach parameter, receives a response from the Spotify API, and updates the searchResults state with the results from a Spotify Request.Sections

Obtain a Spotify Accesss Token

  • wrote three methods that:
    • Get a Spotify user's access token.
    • send a search request to the Spotify API
    • Save a user's playlist to their Spotify Account. Sections

Implement Spotify Search Request

  • created a method in Spotify.js that accepts a search term input, passes the search term value to a Spotify request, then returns the responses as a list of tracks in JSON format.
  • Apply user's access token to make requests to the spotify API following step four of Spotify's implicit grant flow to make requests.
  • Used fetch() to make the requests in this case.
  • Used the Spofity Web API Endpoint Reference to help format your request. Sections

Save a User's Playlist

  • Created a mehtod called savePlayList that writes the user's costom playlist in Jammming to their Spotify Account.Sections

Deployment Notes

<style> p { color:red } </style>

MarkDownNotes

Mark Down Notes You Tube

10-12-1_project_jammming's People

Watchers

Rick Mansfield avatar

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.