sdkclements / wdi_radio_lab

[rails,angular]

Home Page:https://ga-wdi-exercises.github.io/wdi_radio_lab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


first commit

🔥 WDI Radio 🔥

View deployed solution here

Please fork this repo. By 5:00pm Thursday, March 9th, submit your work as a pull request.

User Stories

  • As a user, when I go to the app's root url, we should see a welcome page.
  • As a user, when I visit "/songs", I should be able to see all of the songs in my database.
  • Bonus: As a user, when we click on a song it starts playing. The world is a better place

Setup

What follows are not explicit steps. Just guidelines to approach building out this Angular application.

Angular Setup

  • Create a main directory for your wdi_radio application.
  • Create an index.html in your application's main directory.
  • Make sure to load in any appropriate libraries via CDNs
  • Create a skeleton for your content and include all dependencies.
  • Create the main app.js file and create the module for this angular app.
  • Create a module that defines songs.

Firebase Setup

  • Create a new project in the Firebase console
  • When prompted, make sure to choose the right most option: "Add Firebase to your web app".
  • After selecting the option, you should see a notification with a code snippet that contains your application's configuration credentials.
  • Make sure to include that snippet in your app's main index.html before any of your js files

Initialize a Router

  • Configure your app's routing in the app.js.
  • Add a state for the routes / and /songs.
  • Create templates for these routes.

Define a Controller

  • Create a controller file and define a controller to handle songs.
  • Access the data from firebase and save it as a property on the controller

Build Views

  • Use data attached to your view model to display a list of all songs

Bonus I: Full CRUD Songs

  • Implement full CRUD for Songs

Bonus II: Deploy to Firebase

Bonus III: Custom Player Directive

Implement a "player" using an Angular custom directive

  • When you click a song, a player view renders somewhere in the index
  • Get the song to play
  • Some options for the song player...

If you finish this bonus, look into how you could integrate Spotify's API into your WDI Radio app.

About

[rails,angular]

https://ga-wdi-exercises.github.io/wdi_radio_lab


Languages

Language:HTML 55.4%Language:JavaScript 35.5%Language:CSS 9.1%