Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
an example on how to use the hybrid validation framework hauptkommissar
CoffeeScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.gitignore
Procfile
README.md
package.json

README.md

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.

Something went wrong with that request. Please try again.