Last active
August 29, 2015 14:16
-
-
Save enjalot/2baf6f60e0242a4fced4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.idea | |
node_modules | |
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = require('./index'); | |
var builder = require('derby-standalone-builder') | |
builder.build(app, __dirname); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Body:> | |
<h1>Hello, world!</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var derby = require('derby'); | |
var app = module.exports = derby.createApp('test', __filename); | |
app.use(require('derby-debug')); | |
app.loadViews(__dirname); | |
app.get('/', function(page, model) { | |
page.render(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "test", | |
"version": "1.0.0", | |
"description": "Mini derby-app", | |
"main": "index.js", | |
"scripts": { | |
"start": "node server.js" | |
}, | |
"keywords": [ | |
"derby", | |
"mini" | |
], | |
"dependencies": { | |
"derby": "0.6.0-alpha35", | |
"derby-starter": "^0.2.6", | |
"derby-debug": "^0.1.0", | |
"derby-standalone-builder": "^0.1.1" | |
}, | |
"author": "", | |
"license": "MIT" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('derby-starter').run(__dirname, {port: 3000}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment