Reddit clone(ish) in meteor.
-
Extending User Profile
- Look in collection/users.js. Uses collection2 to attach a schema to the user in the 'profile' object. It then needs certain permissions to allow the user to update itself.
-
Form Validation
- Uses collection2 method of update/insert. Returns an
error
object withinvalidKeys
if inputs do not match schema definitions.
- Uses collection2 method of update/insert. Returns an
-
Client functions
- Some clientside methods are in
compatibility/client.js
. The compatibility folder gets load priority ensuring correct read order. - Most jQuery DOM operations are done here.
- Some clientside methods are in
- Sub creation needs all fields in form
- Sub listing needs all fields from collecton
- Ability to update sub