No description
Find a file
2013-03-18 22:40:43 +11:00
public added disabled state to submit when no model is selected 2013-03-05 00:05:27 +11:00
routes switched jsdom for cheerio. Epic speed improvements! 2013-03-18 22:37:29 +11:00
views added disabled state to submit when no model is selected 2013-03-05 00:05:27 +11:00
.gitignore added sublime project and workspace files to gitignore 2013-03-04 22:56:58 +11:00
app.js removed unused modules from app.js 2013-03-05 07:26:58 +11:00
package.json switched jsdom for cheerio. Epic speed improvements! 2013-03-18 22:37:29 +11:00
Procfile added Procfile for heroku deployment 2013-02-19 18:43:31 +11:00
README.md updated README with cheerio 2013-03-18 22:40:43 +11:00

Specs Crêpe

Check it out at specs-crepe.herokuapp.com

What is it?

This is a little Node app I wrote to eliminate a silly manual process we had to go through for a project rollout -- the porting of html tabular data into a slightly different html table containing the same data.

But, really, it was just an excuse to try out a few things I've been wanting to try :D

How it works

It's effectively a scraper. Built atop of a Node + Express foundation, it uses Request to... request the the source page containing the tabular data we want. We then parse the response using cheerio to create a clean array of objects, which we pass to a Jade template to produce our final re-formatted html!

The frontend is used to get set various options to modify the output, particulary which model's specifications we want. You'll recognise the familiar Bootstrap stylings.

Installation

You'll need Node (at least 0.8.x) installed.

First, clone the repo:

$ git clone git@github.com:victornguyen/specs-crepe.git

Change to the specs-crepe directory:

$ cd specs-crepe

Install the Node dependencies:

$ npm install

Start the app:

$ node app.js

You should then be able to use the app by visiting localhost:3000

What it uses