Blaze.Template

Client new Blaze.Template([viewName], renderFunction) import { Blaze } from 'meteor/blaze' Source Constructor for a Template, which is used to construct Views with particular name and content. Arguments viewName String Optional. A name for Views constructed by this Template. See view.name. renderFunction Function A function that returns renderable content. This function is used as the renderFunction for Views constructed by this Template.

AccountsCommon#onLogin

Anywhere accountsClientOrServer.onLogin(func) Source Register a callback to be called after a login attempt succeeds. Arguments func Function The callback to be called when login is successful.

Package.onTest

Unit Tests Set up your tests with the Package.onTest handler, which has an interface that's parallel to that of the onUse handler. The tests will need to depend on the package that you have just created. For example, if your package is the email package, you have to call api.use('email') in order to test the package. If you used meteor create to set up your package, Meteor will create the required scaffolding in package.js, and you'll only need to add unit test code in the _test.js file that

Security

After reading this guide, you’ll know: The security surface area of a Meteor app. How to secure Meteor Methods, publications, and source code. Where to store secret keys in development and production. How to follow a security checklist when auditing your app. Introduction Securing a web application is all about understanding security domains and understanding the attack surface between these domains. In a Meteor app, things are pretty simple: Code that runs on the server can be trusted. Every

Collections and Schemas

After reading this guide, you’ll know: The different types of MongoDB collections in Meteor, and how to use them. How to define a schema for a collection to control its content. What to consider when defining your collection’s schema. How to enforce the schema when writing to a collection. How to carefully change the schema of your collection. How to deal with associations between records. MongoDB collections in Meteor At its core, a web application offers its users a view into, and a way to

collection.rawCollection

Server collection.rawCollection() Source Returns the Collection object corresponding to this collection from the npm mongodb driver module which is wrapped by Mongo.Collection.

api.addAssets

package.js api.addAssets(filenames, architecture) Specify asset files for your package. They can be accessed via the Assets API from the server, or at the URL /packages/username_package-name/file-name from the client, depending on the architecture passed. Arguments filenames String or Array of Strings Paths to the asset files. architecture String or Array of Strings Specify where this asset should be available (e.g., 'server', 'client', 'web.browser', 'web.cordova'). You can speci

oauth-encryption

oauth-encryption Encrypts sensitive login secrets stored in the database such as a login service's application secret key and users' access tokens.

AccountsClient

Client new AccountsClient(options) import { AccountsClient } from 'meteor/accounts-base' Source Constructor for the Accounts object on the client. Options connection Object Optional DDP connection to reuse. ddpUrl String Optional URL for creating a new DDP connection.

meteor help

meteor help Get help on meteor command line usage. Running meteor help by itself will list the common meteor commands. Running meteor help command will print detailed help about the command.