Permalink
Browse files

readme, example update, package.json

  • Loading branch information...
1 parent d7174db commit b1038e67340703f382691350cb70879d68e58d48 @namuol committed Sep 30, 2012
Showing with 11 additions and 20 deletions.
  1. +7 −13 README.md
  2. +2 −1 example/package.json
  3. +1 −5 example/server.js
  4. +1 −1 package.json
View
@@ -2,19 +2,13 @@ node-impact-weltmeister
-----------------------
Aiming to provide a complete drop-in replacement for the PHP backend used by
-ImactJS's Weltmeister editor. Essentially just some small tweaks to make the
-existing code work without needing to make any modifications to the existing
-weltmeister code configuration.
+ImactJS's Weltmeister editor, for use with express.
-Install
--------
-
- npm install impact-weltmeister
-
-Use (with connect/express)
-------------------------
-
-The following code will run a webserver that both hosts your game's static
-content & ImpactJS's Weltmeister editor, and add
+Quickstart
+----------
+ npm install express impact-weltmeister
+ cp node_modules/impact-weltmeister/example/server.js .
+ unzip path/to/impact-1.*.zip .
+ node server.js
View
@@ -8,7 +8,8 @@
"main": ".",
"version": "0.1.0",
"dependencies": {
- "express": ">= 2.0.0"
+ "express": ">= 2.0.0",
+ "impact-weltmeister": ">= 0.1.0"
},
"engines": {
"node": ">= 0.4",
View
@@ -1,10 +1,6 @@
// You'll need to `npm install express`, of course.
var express = require('express'),
-
- // For a real-world app, you'd need to change the following line
- // to this:
- //impact = require('impact-weltmeister'),
- impact = require('../lib/weltmeister'),
+ impact = require('impact-weltmeister'),
port = 8080,
root = __dirname + '/impact',
app = express();
View
@@ -1,6 +1,6 @@
{
"name": "impact-weltmeister",
- "description": "minimal express backend for ImpactJS's editor, \"Weltmeister\"",
+ "description": "express backend for ImpactJS's editor, \"Weltmeister\"",
"author": {
"name": "Conner Petzold",
"email": "cpetzold@gmail.com"

0 comments on commit b1038e6

Please sign in to comment.