Harvest lego set info and put it in mongodb... using CoffeeScript
CoffeeScript Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ops
src
test
.gitignore
Cakefile
README.md
package.json
run-dev.sh
run-tests.sh
sets.txt

README.md

Lego Database

The LegoDatabase project was created as an exercise to learn more about the following technologies: CoffeeScript, Node.js, MongoDB.

The project has two parts:

  • Harvest set data from Brickset.com's excellent set API into MongoDB

  • Run a webserver to display your sets using facets, these are generated using MongoDBs aggregation framework.

Install

You'll need to install nodejs, mongodb and npm on your system. Once done you need to:

npm install -g coffee-script mocha
npm install

Usage

To put data into MongoDB from Brickset and then start the site, just use:

ops/start-dev-mongodb.sh
cat sets.txt | coffee src/server/collector/runcollector.coffee
cake dev

To run tests, just do:

./run-tests.sh