Created
May 18, 2011 20:08
-
-
Save matbee-eth/979427 to your computer and use it in GitHub Desktop.
Nodester, Express, SMSified
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
var express = require('express'); | |
var app = express.createServer(); | |
app.get('/', function(req, res){ | |
res.render('./index.html'); | |
}); | |
app.listen(10083); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
var express = require('express');
app = express.createServer();
app.get('/', function(req, res){
res.render('./index.html'); // index.html is supposed to be in views/./index.html -> views/index.html
});
app.listen(10083);