meteor admin

meteor admin Catch-all for miscellaneous commands that require authorization to use. Some example uses of meteor admin include adding and removing package maintainers and setting a homepage for a package. It also includes various helpful functions for managing a Meteor release. Run meteor help admin for more information.

Package.onUse

Package Definition Define dependencies and expose package methods with the Package.onUse handler. This section lets you define what packages your package depends on, what packages are implied by your package, and what object your package is exported to. package.js Package.onUse(func) Define package dependencies and expose package methods. Arguments func Function A function that takes in the package control api object, which keeps track of dependencies and exports. package.js

customType.toJSONValue

Anywhere customType.toJSONValue() Source Serialize this instance into a JSON-compatible value.

meteor create

meteor create name Create a new Meteor project. By default, makes a subdirectory named name and copies in the template app. You can pass an absolute or relative path. You can use the --package option, to create a new package. If used in an existing app, this command will create a package in the packages directory.

App.icons

App.icons(icons) Set the icons for your mobile app. Arguments icons Object An Object where the keys are different devices and screen sizes, and values are image paths relative to the project root directory. Valid key values: iphone_2x (120x120) iphone_3x (180x180) ipad (76x76) ipad_2x (152x152) ipad_pro (167x167) ios_settings (29x29) ios_settings_2x (58x58) ios_settings_3x (87x87) ios_spotlight (40x40) ios_spotlight_2x (80x80) android_mdpi (48x48) android_hdpi (72x72) androi

AccountsCommon#userId

Anywhere but publish functions accountsClientOrServer.userId() Source Get the current user id, or null if no user is logged in. A reactive data source.

User Interfaces

After reading this guide, you’ll know: How to build reusable client side components in any user interface framework. How to build a style guide to allow you to visually test such reusable components. Patterns for building front end components in a performant way in Meteor. How to build user interfaces in a maintainable and extensible way. How to build components that can cope with a variety of different data sources. How to use animation to keep users informed of changes. UI components In Met

AccountsServer

Server new AccountsServer(server) import { AccountsServer } from 'meteor/accounts-base' Source Constructor for the Accounts namespace on the server. Arguments server Object A server object such as Meteor.server.

Publications and Data Loading

After reading this guide, you’ll know: What publications and subscriptions are in the Meteor platform. How to define a publication on the server. Where to subscribe on the client and in which templates. Useful patterns for managing subscriptions. How to reactively publish related data. How to ensure your publication is secure in the face of reactive changes. How to use the low-level publish API to publish anything. What happens when you subscribe to a publication. How to turn a 3rd-party REST e

Tracker.Computation

Tracker.Computation A Computation object represents code that is repeatedly rerun in response to reactive data changes. Computations don't have return values; they just perform actions, such as rerendering a template on the screen. Computations are created using Tracker.autorun. Use stop to prevent further rerunning of a computation. Each time a computation runs, it may access various reactive data sources that serve as inputs to the computation, which are called its dependencies. At some futu