Skip to content
David edited this page Mar 16, 2015 · 8 revisions

Installing and setting up Validatinator is as easy as any other JavaScript "plugin," but we do offer something that makes this simple process even simpler; you can use Bower! Here we will show you how to install and set up Validatinator via bower and the original method.

1 Step Wonders

Bower

bower install validatinator

NPM

npm install validatinator

Original Method

Download The Source

Before doing anything you will need to retrieve the source code by cloning the repository or downloading the zip from HERE. When working with Validatinator on a site that will be pushed to production make sure you download the source from the master branch, this branch will always contain the most stable, up-to-date, code.

Running The Source Through Jasmine Testing (Optional)

Now that you have the source at your disposal you can successfully run the Jasmine tests using Grunt, you will need access to PhantomJS to run the tests via the terminal. Click to learn how to use Jasmine, Grunt and PhantomJS.

Linking The JavaScript Files

Move the Validatinator.min.js file to the directory that houses the rest of your JavaScript source code, once there go ahead and link the Validatinator.min.js file within your HTML source:

<!DOCTYPE html>
<html>
    <head></head>
    <body>
        <!-- Your HTML -->
        <script type="text/javascript" src="path/to/your/js/validatinator.min.js"></script>
    </body>
</html>
Clone this wiki locally