Advertisement
Guest User

Untitled

a guest
Jan 29th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. /*Chirper Design Phase
  2.  
  3. Come up with the schema for the twitter application.
  4. - URL structure for all directories
  5. - All objects you will be storing in firebase
  6. - All properties of those objects
  7. - Pay attention to casing and the data type (especially on dates) of properties
  8.  
  9. Requirements:
  10. - CRUD on tweets
  11. - CRUD for friends
  12. - CRUD for Profile
  13. - Read Friends tweets
  14. - On initial page, load your tweets and sort them by timestamp
  15. - A timeline page, which shows all tweets from all friends sorted by timestamp (should use polling)
  16. - Search Tweets
  17. */
  18.  
  19. //Shared Firebase - profiles
  20. //Must have exact same property names
  21.  
  22. var myProfile=(firstName, lastName, displayName, imageUrl, email, status, firebaseUrl, friends[profile keys of friends in array//], profileKey) {}
  23.  
  24.  
  25. //First, get ALL PROFILES through shared firebase
  26. //display my friends feed:
  27. //Loop through the friends array
  28. //for each friend, retrieve the firebaseUrl from the friend by key comparison looping through ALL PROFILES,
  29. //and perform an AJAX call to their firebase to grab their tweets. push the tweets in to a Javascript array in local memory
  30. //Sort the tweets by reverse datetime order
  31. //display the results to screen
  32.  
  33.  
  34. //Individual firebase
  35. app.Message =function(author, createDate, modifyDate, body, background-color, font, text-color, key);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement