diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b874dfc --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +node_modules/ +*.orig +*.swp +*.swo +configuration/development.js +configuration/production.js +configuration/test.js +public/css/*.css +.DS_Store +.settings.xml diff --git a/app.js b/app.js new file mode 100644 index 0000000..0833751 --- /dev/null +++ b/app.js @@ -0,0 +1,12 @@ +var express = require('express'), + fs = require('fs'); + +var app = express.createServer(); + +app.get('/', function(req, res){ + fs.readFile(__dirname + '/index.html', 'utf8', function(err, text){ + res.send(text); + }); +}); + +app.listen(3000); \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..07e1419 --- /dev/null +++ b/package.json @@ -0,0 +1,8 @@ +{ + "name": "web-builder", + "version": "0.0.1", + "dependencies": { + "express": "2.5.2", + "jade" : "0.20.0" + } +} \ No newline at end of file