-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchitecture
60 lines (46 loc) · 1.6 KB
/
architecture
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
NAV:
clickable logo for feed - left (HOME ICON?)
search - left (centered?)
looks for people (@)
and hashtags (#)
feed - right
login - right (signed out)
ME - right (signed in)
dropdown - right (signed in)
settings
logout
rootsope.loggedinuser - make request if it's null
set to something if logged out
FEED: (/feed)
List of all people set to public
just show their names in a list to start
click on name to go to profile
can only comment on picture if you're signed in
PROFILE: (/profile)
shows username
the people they have liked
their photos
who likes them and what comments there are
requires a User object for that page - gets argument from url and makes get for that username
then sets scope.user = user
populate page with that
if no user - say no user
if private - say private
IF logged in:
can click "take photo" button
(V2) click on photos to go to EDIT page
LOGIN/SIGNUP: (/login and /signup)
if logged in:
redirect to feed
can toggle between log in and sign up
sign up success takes you to feed (or redirects if coming from clicking "like")
same with login (default to feed for now)
SETTINGS:
daily email config - time of day
private/public toggle
AUTH/SESSION
when log in you get a cookie with the user
if you leave and come back and we see the cookie, we get the user - if there is no user, we send a 404 and delete the cookie
if cookie and !user
is logged in just relies on that cookie - if expired/non existent, you have to log in again
every call that pertains to your user brings it back and sets it on the Auth singleton