Cheatography
https://cheatography.com
Meteor is a Node-based JavaScript platform for developing reactive websites.
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Command Line Tools
|
Prints the help information for the meteor
command |
meteor create <app_name>
|
Creates a new Application called <app_name>
|
|
Starts your application |
|
Connects to the running app's MongoDB instance |
|
Adds a new package to the application |
|
Resets the project state (removes the local DB!) |
Core
|
Value is true
in client environment |
Anywhere |
|
Value is true
in server environment |
Anywhere |
|
Value is true
in a Cordova mobile environment |
Anywhere |
|
Run the function when the client/server starts |
Anywhere |
Meteor.absoluteUrl(/[path], [options])
|
Generates an absolute URL pointing to the application |
Anywhere |
|
|
Folders
|
Holds the meteor-specific files |
|
Files only visible/executed on the Client |
/client/compatibility
|
For JavaScript files that rely on variables declared with var at the top level. These scripts are executed without being wrapped in a new variable scope. |
|
Files only visible/executed on the Server |
|
Files servered as-is to the Client |
|
Files are only accessible from the Server code |
|
Used for local tests only. Any files in this folder is not loaded anywhere in the running applications. |
|