Closed liam-m closed 8 years ago
The only change we can think the comment system needs is #33. I'm happy to do this during #31.
Once this is complete, it would be useful for someone who understands it to give an overview for how it works for the rest of us.
@Beornwulf: the user's details are stored in the database, which uses the DataMapper ORM. The ORM abstracts away the details of database interaction so it's wrapped up in an object.
The model is stored in user.rb.
The currently logged in user is available in the user variable (or nil).
The actual login happens in auth.rb, ignoring the developer strategy for now:
/auth/new
and is redirected to /auth/google_oauth2
When they log out, we remove their cookie
So when you come to implement the gamification feature you should be able to specify the relationship between badges (or whatever) and users in the model file using the associations.
The Auth system needs changes to accommodate the gamification/social features (#32) and the video comments/tags (#31)
@Lixquid and @ReverateNM are going to do this once they've finished the quiz changes.