You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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