Skip to content

Commit

Permalink
added node files
Browse files Browse the repository at this point in the history
  • Loading branch information
alexose committed Feb 18, 2013
1 parent 7a692c3 commit cdf9e1e
Show file tree
Hide file tree
Showing 1,550 changed files with 1,121,174 additions and 15 deletions.
15 changes: 0 additions & 15 deletions README

This file was deleted.

45 changes: 45 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@

/**
* Module dependencies.
*/

var express = require('express')
, routes = require('./routes')
, http = require('http')
, path = require('path')

var app = express();

app.configure(function(){
app.set('port', process.env.PORT || 3000);
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
app.use(express.favicon());
app.use(express.logger('dev'));
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(app.router);
app.use(express.static(path.join(__dirname, 'public')));
});

app.configure('development', function(){
app.use(express.errorHandler());
});

// Connect to the db
var mongo = require('mongodb');

mongo.connect("mongodb://localhost:27017/allrecipes", function(err, db) {
if(!err) {
console.log("We are connected");
}
http.createServer(app).listen(app.get('port'), function(){
console.log("Express server listening on port " + app.get('port'));
});
app.set('db', db);
app.get('/', routes.index);
app.post('/crawl', require('./routes/crawl').crawl);
app.post('/parse', require('./routes/parse').parse);
app.post('/generate', require('./routes/generate').generate);
app.post('/list', require('./routes/generate').list);
});
Empty file added mongo.js
Empty file.
1 change: 1 addition & 0 deletions node_modules/.bin/express

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/jade

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/big-xml/.npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions node_modules/big-xml/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 43 additions & 0 deletions node_modules/big-xml/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

98 changes: 98 additions & 0 deletions node_modules/big-xml/lib/big-xml.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/big-xml/lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions node_modules/big-xml/node_modules/node-expat/.npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions node_modules/big-xml/node_modules/node-expat/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions node_modules/big-xml/node_modules/node-expat/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 51 additions & 0 deletions node_modules/big-xml/node_modules/node-expat/README.markdown

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 60 additions & 0 deletions node_modules/big-xml/node_modules/node-expat/bench.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions node_modules/big-xml/node_modules/node-expat/binding.gyp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cdf9e1e

Please sign in to comment.