Giter VIP home page Giter VIP logo

wdi_radio_lab's Introduction

WDI Radio Lab

Please fork this repo. By 9:00am Friday, submit your work as a pull request.

User Stories

  • As a user, we should be able to see all of our songs in the database.
  • As a user, when we first go to the app, we see a welcome page.
  • Bonus: As a user, when we select a song it starts playing. The world is a better place

Setup

API Setup

Fork and clone this repo. We'll be using a rails back end. It'll be a single model CRUD API for songs. Lets go into this directory and run all our initial Rails setup and run our server.

$ cd wdi_radio_api
$ rake db:create
$ rake db:migrate
$ rake db:seed
$ rails s

This will be the backend we'll be using, from http://localhost:3000.

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.
  • 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.

Router

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

Controller

  • Create a controller file and define a controller to handle songs.

Factory

  • Create a factory for songs that point to the API we setup earlier.
  • Remember to inject this dependency into the controller.

Views

  • Use directives in the html to list all songs

Bonus

  • Full CRUD for Songs
  • DRY up code utilizing Custom Directives

Double Bonus

Implement a "player" custom directive

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

wdi_radio_lab's People

Contributors

andrewsunglaekim avatar mattscilipoti avatar nolds9 avatar robertakarobin avatar

Watchers

 avatar  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.