Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add README and Cakefile which spawns server

  • Loading branch information...
commit 299bc9238b2877493c163040d679c896be9a4b1f 1 parent 5325bfb
@skalnik authored
Showing with 28 additions and 0 deletions.
  1. +11 −0 Cakefile
  2. +17 −0 README.md
View
11 Cakefile
@@ -0,0 +1,11 @@
+{spawn, exec} = require 'child_process'
+print = (data) -> console.log data.toString()
+
+option '-p', '--port [PORT]', 'run server with given port'
+
+task 'server', 'Start application server', (options) ->
+ port = options.port or 3000
+
+ server = spawn 'coffee', ['server.coffee'], { env: {PORT: port } }
+ server.stdout.on 'data', print
+ server.stderr.on 'data', print
View
17 README.md
@@ -0,0 +1,17 @@
+Meme Generator
+==============
+
+A simple JSON API meme generator
+
+
+Setup
+-----
+
+Install npm dependencies and foreman:
+
+ npm install
+
+Start server with Cake:
+
+ ./node_modules/bin/cake server
+
Please sign in to comment.
Something went wrong with that request. Please try again.