Getting Started

dan-nl edited this page Apr 10, 2013 · 3 revisions

If you already have an excellent Connect/Express application, using Limn is very simple.

  1. Install the package via npm:
cd path/to/your/project
npm install limn
  1. Add Limn as middleware:
var limn = require('limn');

app = express.createServer();

// ... other configuration ...

// mount Limn at /vis
app.use('/vis', limn({
    dataDir : './data'

See the Middleware wiki page for more info.

  1. Finally, you'll next need to configure Limn to know about your datasources (though in the future we aim for the client to be able introspect this information from the data).


standalone install

cd /one-level-up/from/desired-location
git clone git://
cd limn
npm install
npm start

adding local datafiles

cd /path/to-limn/var/data
mkdir datafiles
cd datafiles
# create and/or copy datafiles here

adding local data source

  1. after adding local datafiles
  2. browse to your application url, e.g. http://localhost:8081/datasources
  3. click on the Add a New Data Source button.
  4. Datafile URL : ./data/datafiles/your-data-file.csv
  5. ?? file out the id field with ??
  6. click the Save button

running node.js as a service

Run Node.js as a Service on Ubuntu store the file in /etc/init/ example :

description "limn server"
author      ""

# used to be: start on startup
# until we found some mounts weren't ready yet while booting:
start on started mountall
stop on shutdown

# Automatically Respawn:
respawn limit 99 5

   # Not sure why $HOME is needed, but we found that it is:
   export HOME="/home/your-service-user-name"

   cd /path/to/limn
   exec su your-service-user-name -c 'npm start' >> /var/log/limn.log 2>&1
end script

post-start script
  # Optionally put a script here that will notifiy you node has (re)started
  # /root/bin/ "node.js has started!"
end script