Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (18 sloc) 0.872 kB

Kommissar Example

This is an example on how to use Kommissar.

A live example can be found on heroku.

browserify is used to push the client side Javascript to the browser.

I'm not quite happy with this, as it seems to be a bit buggy. However the example should show how Kommissar can be used.

In this package a simple node.js server with 3 validation rules is included.

server contains the POST and GET routes for the example form and performs the server side validation.

client is the logic initialized in the browser.

rule contains the rules used in both, the server and the client.

Usage

Start the server with ./server.coffee and direct your browser to http://localhost:8900.

Jump to Line
Something went wrong with that request. Please try again.