Skip to content

xMartin/internetslum_collector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

# install ports
sudo port install nodejs mongodb

# install node.js package manager "npm"
curl http://npmjs.org/install.sh | sudo sh

# install node.js module for MongoDB
sudo npm install mongodb

# install node.js module for Mustache
sudo npm install mustache

# install node.js module for Express
sudo npm install express

# setup and start database
mkdir /Users/martin/node.js/mongodb/internetslum_collector
/opt/local/bin/mongod --dbpath=/Users/martin/node.js/mongodb/internetslum_collector

# fill database
mongo internetslum_collector
> db.urls.save({username: 'me', url: 'http://www.mongodb.org/display/DOCS/Quickstart+OS+X', date: new Date()})
> db.urls.save({username: 'I', url: 'http://www.slideshare.net/ggoodale/getting-started-with-mongodb-and-nodejs', date: new Date()})

# start node.js server
node app.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published