JavaScript
code shared between Middle Layer and Front End. Mostly Protocol Buffers at the moment.
When a Protocol Buffer schema is changed - e.g. you change the file query.proto, corresponding js
files need to be regenerated. This requires a protoc
compiler installed. Follow these instructions to install it on OSX. If you have brew, do brew install protobuf
to install protoc
.
Regenerating js
files from proto
schemas:
npm run compile
Since the library is used by both Middle Layer
(node.js) and Front End
(browser) the library needs to be compiled to be used in both browser and Node.js environment. We use rollup for this.
Compile the library:
npm run build
The library must be built before every commit because it is used as a direct GitHub dependency in other projects.
Make sure mocha
is installed.
npm test
The 'impresso - Media Monitoring of the Past' project is funded by the Swiss National Science Foundation (SNSF) under grant number CRSII5_173719 (Sinergia program). The project aims at developing tools to process and explore large-scale collections of historical newspapers, and at studying the impact of this new tooling on historical research practices. More information at https://impresso-project.ch.
Copyright (C) 2020 The impresso team. Contributors to this program include: Roman Kalyakin, Daniele Guido. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU Affero General Public License for more details.