Skip to content

Instantly share code, notes, and snippets.

@jnewman12
Created February 23, 2017 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnewman12/f1856f3460659497cb3d75046c4093cc to your computer and use it in GitHub Desktop.
Save jnewman12/f1856f3460659497cb3d75046c4093cc to your computer and use it in GitHub Desktop.
Ionic Assignment

Ionic App Challenge Part 2

hacker news


Our Challenge

  • In this past module, we have seen how to use angular, and now, we have seen how to use what is essentially a mobile-only library for angular
  • We are going to combine this into what we did last week, which is to build a mobile news reader
  • The application we will be building is something based off of Hacker News or Reddit, where we will have Posts and Comments
    • Posts have many comments
    • Comments belong to posts

Requirements and Deliverables

  • Work in pairs/groups/individually
  • Complete all user stories

User Stories

  • as a user, i want to go to load the app and see a list of posts
  • as a user, i want to tap on a post and see the post show page
  • as a user, i want to add a comment on a post
  • as a user, i want to upvote a post
  • as a user, i want to upvote a comment
  • as a user, i want to see a styled app
  • as a user, i want to view and use the app on my phone

Endpoints

             Prefix Verb   URI Pattern                                           Controller#Action
            posts GET    /posts(.:format)                                        posts#index
                    POST   /posts(.:format)                                      posts#create
               post GET    /posts/:id(.:format)                                  posts#show
                    DELETE /posts/:id(.:format)                                  posts#destroy             
        upvote_post PUT    /posts/:id/upvote(.:format)                           posts#upvote
post_comment_upvote PUT    /posts/:post_id/comments/:comment_id/upvote(.:format) comments#upvote
      post_comments POST   /posts/:post_id/comments(.:format)                    comments#create
       post_comment DELETE /posts/:post_id/comments/:id(.:format)                comments#destroy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment