Validation for voter information project
This project is a basic proof of concept for the processing of VIP Feeds compliant to the VIP v3.0 specification. Please forgive me for the lack of comments, docs. More to come soon..
Getting Started
---> Backend Environment Configuration
Ensure that you have MongoDB installed and running (http://www.mongodb.org/)
-
brew install mongo (on MacOSX)
-
ensure the process is running (i.e. - mongodb on MacOSX )
-
optionally, start a shell for debug (i.e. - mongo) or monitoring (i.e. - tail -f <mongodb_logs>
---> Feed Processing Engine
Initialize service by passing the [relative] path of the file you wish to commit to Mongo (e.g.- ./xml/<file_to_parse>) For now, please load all files to be parsed in the 'xml' directory..this will change in later iterations.
Ensure that you have Node.js and its package manager (NPM) installed and configured (nodejs.org)
pre-step) brew install node, npm (on MacOSX) pre-step) npm install the following modules.. --> libxmljs (my xml parser of the month) --> stay tuned here...likely more to come
- node app.js <file_path> : where "file_path" is a location reachable via the the hosting server
Please send any comments, questions, etc my way.
Thanks!
-nobo