Permalink
Browse files

falta complementar mas el esqueleto para completar el issue #1

  • Loading branch information...
1 parent c8cb11f commit 43dbdec01b9c4180059c3094f756fd4ae3f05e5f cronopio committed Jun 7, 2011
Showing with 63 additions and 0 deletions.
  1. +38 −0 app.js
  2. +9 −0 package.json
  3. +8 −0 public/stylesheets/style.css
  4. +2 −0 views/index.jade
  5. +6 −0 views/layout.jade
View
38 app.js
@@ -0,0 +1,38 @@
+
+/**
+ * Module dependencies.
+ */
+
+var express = require('express');
+
+var app = module.exports = express.createServer();
+
+// Configuration
+
+app.configure(function(){
+ app.set('views', __dirname + '/views');
+ app.set('view engine', 'jade');
+ app.use(express.bodyParser());
+ app.use(express.methodOverride());
+ app.use(app.router);
+ app.use(express.static(__dirname + '/public'));
+});
+
+app.configure('development', function(){
+ app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
+});
+
+app.configure('production', function(){
+ app.use(express.errorHandler());
+});
+
+// Routes
+
+app.get('/', function(req, res){
+ res.render('index', {
+ title: 'Express'
+ });
+});
+
+app.listen(3000);
+console.log("Express server listening on port %d", app.address().port);
View
@@ -0,0 +1,9 @@
+{
+ "name": "btcfb"
+ , "version": "0.0.1"
+ , "private": true
+ , "dependencies": {
+ "express": "2.3.11"
+ , "jade": ">= 0.0.1"
+ }
+}
@@ -0,0 +1,8 @@
+body {
+ padding: 50px;
+ font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
+}
+
+a {
+ color: #00B7FF;
+}
View
@@ -0,0 +1,2 @@
+h1= title
+p Welcome to #{title}
View
@@ -0,0 +1,6 @@
+!!!
+html
+ head
+ title= title
+ link(rel='stylesheet', href='/stylesheets/style.css')
+ body!= body

0 comments on commit 43dbdec

Please sign in to comment.