Permalink
Browse files

Adding basics of a server, command-line tool, test suite and coffeesc…

…ript
  • Loading branch information...
0 parents commit 1e3d3e1d923c7a0b897f9844f7d492c9977cd302 @jamierumbelow committed Apr 27, 2012
Showing 449 changed files with 46,952 additions and 0 deletions.
@@ -0,0 +1,2 @@
+.DS_Store
+npm-debug.log
@@ -0,0 +1,17 @@
+{exec} = require 'child_process'
+{print} = require 'util'
+
+task 'build', 'Compile the CoffeeScript source', ->
+ exec 'coffee -b -c -o lib src'
+ exec 'coffee -b -c test'
+
+task 'run', 'Run an instance of Postmaster', ->
+ exec './bin/postmaster'
+
+task 'test', 'Run the Postmaster test suite', ->
+ invoke 'build'
+ invoke 'run'
+
+ exec './node_modules/.bin/nodeunit test', (err, stdout, stderr) ->
+ print stdout if stdout?
+ print stderr if stderr?
@@ -0,0 +1,13 @@
+# Postmaster
+
+Postmaster is a tiny SMTP server that stores all messages in memory and exposes an HTTP API to retrieve them later. This makes it really easy to test the headers and the content of your emails.
+
+## Installation
+
+Install Postmaster with [npm](http://npmjs.org/):
+
+ $ npm install -g postmaster
+
+You can then run Postmaster with the `postmaster` command, which should be in your path:
+
+ $ postmaster
@@ -0,0 +1,2 @@
+#!/usr/bin/env node
+require('../lib/command.js');
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 1e3d3e1

Please sign in to comment.