Skip to content
This repository was archived by the owner on Jun 11, 2019. It is now read-only.

Fixing dependencies for level00 #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion levels/0/level00.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Run as 'node level00.js'

var express = require('express'), // Web framework
bodyParser = require('body-parser'),
mu = require('mu2'), // Mustache.js templating
sqlite3 = require('sqlite3'); // SQLite (database) driver

Expand All @@ -19,7 +20,7 @@ db.run(

// Create the server
var app = express();
app.use(express.bodyParser());
app.use(bodyParser());

function renderPage(res, variables) {
var stream = mu.compileAndRender('level00.html', variables);
Expand Down
5 changes: 3 additions & 2 deletions levels/0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
},
"dependencies": {
"express": "",
"sqlite3": "2.1.5",
"mu2": ""
"sqlite3": "",
"mu2": "",
"body-parser": ""
},
"devDependencies": {}
}