Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Meteor examples.
JavaScript Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
colors-1
colors-2
leaderboard
loteryjka gotowa loteryjka
scripts
things-we-like
todos
.gitignore
README.md

README.md

Life — the only one you get — consists of what you pay attention to. There is literally nothing else.

Node.js modules

Instalacja:

npm install -g serve connect express
npm install -g coffee-script
npm install -g meteorite
npm install -g colors

Meteor

Instalacja:

curl https://install.meteor.com | sh
meteor create --example leaderboard
meteor create ~/hello_world

How do we use node modules via NPM with meteor?

Na przykład tak:

cd hello_world
npm install colors
mkdir server
cat > server/info.js
var require = __meteor_bootstrap__.require;
require("colors"),
  info = "Meteor 0.5.0 application starting in development on http://0.0.0.0:3000";
console.log(info.green);

How do we insert documents into collections from mongo console?

Obejście: zamienić ObjectID(".. id ...") na ".. id ..":

db.players.find().forEach(function(app) {
  db.players.remove({_id: app._id});
  app._id = app._id.toString();
  db.players.insert(app);
});

Atmosphere

Git

Pushing local branch implicit-loop to remote:

git checkout implicit-loop
git push origin implicit-loop

Removing remote implicit-loop branch:

git push origin :implicit-loop

Misc commands

netstat -tapn

Linux

Zobacz EMFILE error when too many files in /public:

sudo sh -c 'echo 8192 > /proc/sys/fs/inotify/max_user_instances'

Domyślnie na Fedorze jest 128.

Tutorials

Handlebars.js:

Misc stuff

Sample apps

  • code_buddy – share live code snippets across multiple browsers; with syntax highlighting
  • chat (screencast)
Something went wrong with that request. Please try again.