DDPRateLimiter

DDPRateLimiter Customize rate limiting for methods and subscriptions. By default, DDPRateLimiter is configured with a single rule. This rule limits login attempts, new user creation, and password resets to 5 attempts every 10 seconds per connection. It can be removed by calling Accounts.removeDefaultRateLimit(). Server DDPRateLimiter.addRule(matcher, numRequests, timeInterval) import { DDPRateLimiter } from 'meteor/ddp-rate-limiter' Source Add a rule that matches against a stream of ev

App.configurePlugin

App.configurePlugin(id, config) Set the build-time configuration for a Cordova plugin. Arguments id String The identifier of the plugin you want to configure. config Object A set of key-value pairs which will be passed at build-time to configure the specified plugin.

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

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.

cursor.fetch

Anywhere cursor.fetch() Source Return all matching documents as an Array.

Blaze.If

Client Blaze.If(conditionFunc, contentFunc, [elseFunc]) import { Blaze } from 'meteor/blaze' Source Constructs a View that renders content conditionally. Arguments conditionFunc Function A function to reactively re-run. Whether the result is truthy or falsy determines whether contentFunc or elseFunc is shown. An empty array is considered falsy. contentFunc Function A Function that returns renderable content. elseFunc Function Optional. A Function that returns renderable conte

React

After reading this guide, you’ll know: What React is, and why you would consider using it with Meteor. How to install React in your Meteor application, and how to use it correctly. How to integrate React with Meteor’s realtime data layer. How to route in a React/Meteor application. Introduction React is a JavaScript library for building reactive user interfaces developed and distributed by the Facebook team. React is one of the three rendering libraries supported by Meteor; it is an alterativ

spacebars

spacebars Spacebars is a Meteor template language inspired by Handlebars. It shares some of the spirit and syntax of Handlebars, but it has been tailored to produce reactive Meteor templates when compiled.

Code style

After reading this article, you’ll know: Why it’s a good idea to have consistent code style Which style guide we recommend for JavaScript code How to set up ESLint to check code style automatically Style suggestions for Meteor-specific patterns, such as Methods, publications, and more Benefits of consistent style Countless hours have been spent by developers throughout the years arguing over single vs. double quotes, where to put brackets, how many spaces to type, and all kinds of other cosme