Skip to content
Browse files

structure

  • Loading branch information...
1 parent 9efb9c2 commit 2fa6769e5df7ea4048f3814a8ed4bf0665a8d879 @nulltask nulltask committed May 16, 2011
View
0 twt.ac/app.js → app.js
File renamed without changes.
View
0 twt.ac/test/app.test.js → test/app.test.js
File renamed without changes.
View
42 twittaction.com/app.js
@@ -1,42 +0,0 @@
-
-/**
- * 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'
- });
-});
-
-// Only listen on $ node app.js
-
-if (!module.parent) {
- app.listen(3000);
- console.log("Express server listening on port %d", app.address().port);
-}
View
8 twittaction.com/public/stylesheets/style.css
@@ -1,8 +0,0 @@
-body {
- padding: 50px;
- font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
-}
-
-a {
- color: #00B7FF;
-}
View
21 twittaction.com/test/app.test.js
@@ -1,21 +0,0 @@
-
-// Run $ expresso
-
-/**
- * Module dependencies.
- */
-
-var app = require('../app')
- , assert = require('assert');
-
-
-module.exports = {
- 'GET /': function(){
- assert.response(app,
- { url: '/' },
- { status: 200, headers: { 'Content-Type': 'text/html; charset=utf-8' }},
- function(res){
- assert.includes(res.body, '<title>Express</title>');
- });
- }
-};
View
2 twittaction.com/views/index.jade
@@ -1,2 +0,0 @@
-h1= title
-p Welcome to #{title}
View
6 twittaction.com/views/layout.jade
@@ -1,6 +0,0 @@
-!!!
-html
- head
- title= title
- link(rel='stylesheet', href='/stylesheets/style.css')
- body!= body
View
8 twt.ac/public/stylesheets/style.css
@@ -1,8 +0,0 @@
-body {
- padding: 50px;
- font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
-}
-
-a {
- color: #00B7FF;
-}
View
0 twt.ac/views/index.jade → views/index.jade
File renamed without changes.
View
0 twt.ac/views/layout.jade → views/layout.jade
File renamed without changes.

0 comments on commit 2fa6769

Please sign in to comment.
Something went wrong with that request. Please try again.