Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

falta complementar mas el esqueleto para completar el issue #1

  • Loading branch information...
commit 43dbdec01b9c4180059c3094f756fd4ae3f05e5f 1 parent c8cb11f
cronopio authored
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
9 package.json
@@ -0,0 +1,9 @@
+{
+ "name": "btcfb"
+ , "version": "0.0.1"
+ , "private": true
+ , "dependencies": {
+ "express": "2.3.11"
+ , "jade": ">= 0.0.1"
+ }
+}
View
8 public/stylesheets/style.css
@@ -0,0 +1,8 @@
+body {
+ padding: 50px;
+ font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
+}
+
+a {
+ color: #00B7FF;
+}
View
2  views/index.jade
@@ -0,0 +1,2 @@
+h1= title
+p Welcome to #{title}
View
6 views/layout.jade
@@ -0,0 +1,6 @@
+!!!
+html
+ head
+ title= title
+ link(rel='stylesheet', href='/stylesheets/style.css')
+ body!= body
Please sign in to comment.
Something went wrong with that request. Please try again.