8000 GitHub - charliepugh92/react-tunes: A simple Spotify API app built with React.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

charliepugh92/react-tunes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Tunes

A simple React app to test competencies. Utilizes the Spotify API to display an artist and albums matching the search input.

React is a JavaScript library for creating user interfaces. Its core principles are declarative code, efficiency, and flexibility. Simply specify what your component looks like and React will keep it up-to-date when the underlying data changes.

Objectives

The goal is to turn this basic, non-optimized app into a React efficient and functional app. Currently, it is just a jQuery app that utilizes DOM manipulation to render the UI. React does all of this out of the box when handled correctly.

  1. Restructure into components. Anything that is repeated, or outside of the context of the current component (logical separation) should be it's own component (i.e. generating UI from strings like html = "<div>...</div>" is bad).
  2. Implement state/props. Data should flow down from the parent components to the children. Props are immutable and should be tired to a parent's mutable state.
  3. Fetch Data. API callouts should directly feed component state.
  4. (Bonus) Implement Bootstrap for styling (not just the css, but think through using the right Bootstrap components for the best UX).

Running

While you are only building a client side app, we are using nodejs to run the server. If you do not have node installed, download the latest version here. Once you have installed node, it would be wise to install npm as well. Simply run sudo npm install npm -g (remove sudu from windows). You can also use homebrew to install node if you're using a mac. Ensure you run brew update first.

Clone the repo to your local system. Navigate to the folder in your terminal or command prompt. Run npm start to fire up the node server on localhost. Then, go to http://localhost:3000/ to access the app.

Links

About

A simple Spotify API app built with React.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0