-
Notifications
You must be signed in to change notification settings - Fork 0
Application
This application is more like three applications wrapped into one.
The CLI tool is responsible for querying althingi.is for informations. These informations are in the form of HTTP calls to their althingi.is/altext/xml/ service which returns XML documents in somewhat hard-to-read state.
The CLI tools then calls the application's RESTfull service to pass in the data. There is no direct connection between the fetcher/parser and the application other than RESTfull calls.
The CLI tool is therefor totally independent of the application. This CLI tool could be replaced by another service that sends in data to the RESTfull application.
The application is responsible for all data storage and domain logic. It has only one enter/exit point and that is through the RESTfull API endpoints. Apart from that, it's just a black box. Behind the scene it uses ZF2 MVC and MySQL database. The idea is to also have ElasticSearch and Cache but that hasn't been implemented.
This application also ships with a WebClient written with the Polymer library. This client like the CLI tool only interacts with the application through the RESTfull API endpoint.