#Intro to Meteor JS
- A very brief intro to Meteor
- QuickVote Demo App
- Meteor Growing Pains Example: Main router package not being maintained
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
#Intro to Meteor JS
<nav class="navbar navbar-inverse"> | |
<div class="container"> | |
<div class="navbar-header"> | |
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> | |
<span class="sr-only">Toggle navigation</span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</button> | |
<a class="navbar-brand" href="#">My Topics App</a> |
Instructions for building this Meteor CRUD app, a basic app for teaching Meteor basics.
git clone [email protected]:andersr/meteor_crud
from your terminal, followed by cd meteor_crud
edit .
)meteor create app
in this directory.)meteor
from the command line.[10:38:59] The following tasks did not complete: default, <parallel>, watch:styles, watch:views, browser-sync | |
[10:38:59] Did you forget to signal async completion? |
//check if undeclared | |
try{ | |
undeclaredVar | |
} | |
catch(e) { | |
if(e.name === 'ReferenceError') { | |
console.log('var is undeclared') | |
} | |
} |
for (var i = 1; i <= 100; i++) { | |
if (i % 3 === 0 && i % 5 === 0) { | |
console.log('fizzbuzz') | |
} else if (i % 3 === 0) { | |
console.log('fizz') | |
} else if (i % 5 === 0) { | |
console.log('buzz') | |
} | |
} |
const fetchJSON = url => | |
fetch(url, { method: 'GET' }) | |
.then(response => response.json()) |