Some exercises from the Falsy Values workshops.
The good parts:
- HTTP server and client in same script
- Express cookies example
- Express routing example
- Express error handling
- Express middlewares example
- Simple HTTP proxy
| var app = require('../app'); | |
| console.log(); | |
| app.routes.all().forEach(function(route){ | |
| console.log(' \033[90m%s \033[36m%s\033[0m', route.method.toUpperCase(), route.path); | |
| }); | |
| console.log(); | |
| process.exit(); |
Some exercises from the Falsy Values workshops.
The good parts:
| vows = require 'vows' | |
| assert = require 'assert' | |
| tobi = require 'tobi' | |
| vows.describe('Root').addBatch | |
| '브라우저에서': | |
| topic: -> tobi.createBrowser 3000, 'localhost' | |
| 'GET /의': | |
| topic: (topic) -> | |
| topic.get "/", @callback.bind(@, null) |
| require 'test/unit' | |
| require 'rubygems' | |
| gem 'activesupport' | |
| require 'active_support/core_ext/module' | |
| class Original | |
| def hello | |
| "Original" | |
| end | |
| end |