Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

structure

  • Loading branch information...
commit 2fa6769e5df7ea4048f3814a8ed4bf0665a8d879 1 parent 9efb9c2
Seiya Konno nulltask authored
0  twittaction.com/app.js → app.js
File renamed without changes
0  twittaction.com/test/app.test.js → test/app.test.js
File renamed without changes
8 twittaction.com/public/stylesheets/style.css
... ... @@ -1,8 +0,0 @@
1   -body {
2   - padding: 50px;
3   - font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
4   -}
5   -
6   -a {
7   - color: #00B7FF;
8   -}
42 twt.ac/app.js
... ... @@ -1,42 +0,0 @@
1   -
2   -/**
3   - * Module dependencies.
4   - */
5   -
6   -var express = require('express');
7   -
8   -var app = module.exports = express.createServer();
9   -
10   -// Configuration
11   -
12   -app.configure(function(){
13   - app.set('views', __dirname + '/views');
14   - app.set('view engine', 'jade');
15   - app.use(express.bodyParser());
16   - app.use(express.methodOverride());
17   - app.use(app.router);
18   - app.use(express.static(__dirname + '/public'));
19   -});
20   -
21   -app.configure('development', function(){
22   - app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
23   -});
24   -
25   -app.configure('production', function(){
26   - app.use(express.errorHandler());
27   -});
28   -
29   -// Routes
30   -
31   -app.get('/', function(req, res){
32   - res.render('index', {
33   - title: 'Express'
34   - });
35   -});
36   -
37   -// Only listen on $ node app.js
38   -
39   -if (!module.parent) {
40   - app.listen(3000);
41   - console.log("Express server listening on port %d", app.address().port);
42   -}
8 twt.ac/public/stylesheets/style.css
... ... @@ -1,8 +0,0 @@
1   -body {
2   - padding: 50px;
3   - font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
4   -}
5   -
6   -a {
7   - color: #00B7FF;
8   -}
21 twt.ac/test/app.test.js
... ... @@ -1,21 +0,0 @@
1   -
2   -// Run $ expresso
3   -
4   -/**
5   - * Module dependencies.
6   - */
7   -
8   -var app = require('../app')
9   - , assert = require('assert');
10   -
11   -
12   -module.exports = {
13   - 'GET /': function(){
14   - assert.response(app,
15   - { url: '/' },
16   - { status: 200, headers: { 'Content-Type': 'text/html; charset=utf-8' }},
17   - function(res){
18   - assert.includes(res.body, '<title>Express</title>');
19   - });
20   - }
21   -};
2  twt.ac/views/index.jade
... ... @@ -1,2 +0,0 @@
1   -h1= title
2   -p Welcome to #{title}
6 twt.ac/views/layout.jade
... ... @@ -1,6 +0,0 @@
1   -!!!
2   -html
3   - head
4   - title= title
5   - link(rel='stylesheet', href='/stylesheets/style.css')
6   - body!= body
0  twittaction.com/views/index.jade → views/index.jade
File renamed without changes
0  twittaction.com/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.