The Web ui for the garðr validator
npm install gardr-validator-web
|51||downloads in the last week|
|51||downloads in the last month|
|Version||0.1.7 last updated 2 days ago|
|Dependencies (30)||gardr-validator, hapi, hoek, request, handlebars, browserify, domready, dom-events, concat-stream, moment, async, winston, mkdirp, bower, brace, clean-css, htmlparser-to-html, htmlparser2, soupselect, convict, css-parse, uglify-js, estraverse, esprima, unzip, lodash, gardr, levelup, leveldown, node-uuid|
Description: This is the web interface for the garðr validator project.
The main purpose is to find possible errors or regressions in display ads. Its intended to grow over time to a set of rules based on best practices for performance ( although displayads not necessarily can avoid document.write atm ).
Hooks / Harvesters (runs inside phantomJS context):
- har,logs,errors (default)
- actions (click)
- gardr (based on advertsspec)
Validators / Rules (runs in node.js context):
- errors (default)
- forbidden (usages)
How does the validator work?
It uses phantomJS as a browser, loads in a shim on top of the phanomjs api, runs for a 10 seconds after all hooks/harvesters has been injected. After phantomjs run, the validators/rules runs in a series to generate a report(info, warn, debug, error).
Install depedencies and package validator with package gardr(abit funky)
$ npm install && npm run build
$ npm test
Starting the application
$ HOST=localhost PORT=8000 npm start
$ npm run start-dev
Additional startup configuration
You can configure port, logfile location, etc using the config module or by specifying environment variables when starting.
$ HTTP_PORT=1337 LOG_FILE_NAME=~/mylogs/pvw npm start
Where to get help
Create a github issue, or contact firstname.lastname@example.org.
YES, pull requests with tests. Be sure to create a issue and let us know you are working on it - maybe we can help out with insights etc.
(please let us know of alternatives to this project)