Skip to content

Instantly share code, notes, and snippets.

View julianduque's full-sized avatar
😈
Heroku DevRel

Julián Duque julianduque

😈
Heroku DevRel
View GitHub Profile
@julianduque
julianduque / meteor jitsu
Created May 1, 2013 21:22 — forked from blakmatrix/command line shell
Meteor on Nodejitsu
meteor create --example todos
meteor bundle myapp.tgz
tar xzf myapp.tgz
cd bundle
(create package json with settings below)
jitsu databases create mongo <dbname>
(grab dbstring)
jitsu env set PORT 3000
jitsu env set MONGO_URL <dbstring>
jitsu deploy
@julianduque
julianduque / db.js
Last active December 21, 2015 11:29 — forked from anonymous/db.js
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/app');
var usrSchema = new mongoose.Schema({
user: { type: String, required: true },
password: { type: String, required: true },
DLU: { type: Date }
});
@julianduque
julianduque / levelup.md
Last active August 29, 2015 14:10 — forked from dshaw/levelup.md
Leveling up in Node.js

Core Concepts

Required

  • Understand JavaScript / Node.js Asynchronous nature
  • Understand callbacks, EventEmitter and error handling
  • Understand both async and sync Filesystem API
  • Feel comfortable writing Node.js modules
  • Write http server and clients