studentmediene / DABelFish

http://dab.radiorevolt.no
MIT License
1 stars 0 forks source link

DABelFish

Packages we use

twbs:bootstrap

This package adds the bootstrap stylesheets (css) and javascript (js).

accounts-password

This package adds general useraccount-features.

Users can be found in Meteor.users. Every user has a unique ID. The ID of the current user can be found with Meteor.userId(). This returns undefined if the user is not logged in. You can also use {{ currentUser }} in all templates without use of any helper functions, and this calls the Meteor.userId()-function.

iron:router

Gives routing functionality, both client- and server-side. See the documentation for more information.

aldeed:collection2

Adds support for defining schemas for collections, see lib/schemas.js for our schemas, and their github page for documentation.

ongoworks:security

Adds security to client-side operations to collections (insert, update, remove). Our security is defined in server/security.js. Read the documentation for more information on usage.

juliancwirko:s-alert

Client side alert boxes, for feedback. See the documentation for usage. We also uses the juliancwirko:s-alert-slide style package.

alanning:roles

Adds roles to users. We could have implemented this easily our self, but it integrates nicely with the security package, and makes life easier. See github for documentation.

momentjs:moment

Converts ISO-time to a nice readable string. Documentation.

check

Adds the check()-function, which checks if a variable matches a type or pattern. E.g.: check(myVar, String) to check if myVar is a string. See docs for usage.

dispatch:run-as-user

Allows the server to run code with client-side restrictions. Integrates nicely with the security package. See documentation for usage.

random

We use it to generate a random id (Random.id()) for the initial user. See documentation for a complete list of features.