Skip to content

Instantly share code, notes, and snippets.

@matbee-eth
Created May 18, 2011 20:08
Show Gist options
  • Save matbee-eth/979427 to your computer and use it in GitHub Desktop.
Save matbee-eth/979427 to your computer and use it in GitHub Desktop.
Nodester, Express, SMSified
var http = require('http');
var express = require('express');
var app = express.createServer();
app.get('/', function(req, res){
res.render('./index.html');
});
app.listen(10083);
@eldios
Copy link

eldios commented May 18, 2011

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment