- Meteor:
$ curl https://install.meteor.com/ | sh - Meteorite(deprecated):
$ npm install -g meteorite - Yo:
$ npm install -g yo - Meteor Generator:
$ npm install -g generator-meteor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Set up base class DIV | |
| function Div(name){ | |
| this.name = name; | |
| this.element = null; | |
| } | |
| Div.prototype.draw = function(){ | |
| // $("p").append("<div>Div</div>"); | |
| console.log('draw works'); | |
| this.element = $("<div>Div</div>"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Main Class | |
| //Create base div class | |
| function Div(){ | |
| this.color = null; | |
| this.htmlElement = null; | |
| this.draw = function (){ | |
| this.htmlElement = $("<div>"+this.color+"</div>"); | |
| $('body').append(newDiv); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Main Class | |
| //Create base div class | |
| function Div(){ | |
| this.color = null; | |
| this.htmlElement = null; | |
| this.draw = function (){ | |
| this.htmlElement = $("<div>"+this.color+"</div>"); | |
| $('body').append(this.htmlElement); | |
| }; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Box(){ | |
| //constructor goes here | |
| this.name = "Box"; | |
| } | |
| Box.prototype.draw = function() { | |
| console.log(this.name + " drawing!"); | |
| }; | |
| console.log("Box prototype", Box.prototype); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Boxes = new Meteor.Collection("boxes"); | |
| if (Meteor.isClient) { | |
| var allBoxes = Boxes.find(); | |
| allBoxes.observe({ | |
| changed: function(doc, index){ | |
| console.log(doc); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <head> | |
| <title>tempDrag</title> | |
| </head> | |
| <body> | |
| <h1>Welcome to Meteor!</h1> | |
| {{> boxContainer}} | |
| </body> | |
| <template name="boxContainer"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <script src="js/mail-generator.js"></script> | |
| <link href="css/style.css" rel="stylesheet" media="screen"> | |
| <script> | |
| window.onload = function(){ | |
| // ALL OF YOUR JAVASCRIPT CODE SHOULD GO HERE. | |
| // We have to use window.onload so your JavaScript doesn't execute until the page has loaded and all HTML has been downloaded to your browser | |
| //MAIN FUNCTIONALITY |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| mkdir docs | |
| mkdir -p src/client/collections | |
| mkdir -p src/client/compatibility | |
| mkdir -p src/client/conf | |
| mkdir -p src/client/lib | |
| mkdir -p src/client/routers | |
| mkdir -p src/client/startup | |
| mkdir -p src/client/stylesheets | |
| mkdir -p src/client/subscriptions |
OlderNewer