Open Source GeoSocial Intelligence Framework
DOI for current stable release v2.0.0:
Cognicity-reports is the NodeJS reports module for the CogniCity framework, responsible for collecting relevant tweets, and sending users verification messages via Twitter. For detailed framework documentation see http://cognicity.info.
Download the source code for cognicity-reports from github: http://github.com/smart-facility/cognicity-reports or view the CogniCity installation documentation at http://cognicity.info.
Install the node dependencies in package.json using NPM: npm install
These can be found in the cognicity-schema repository and consist of
psql -U postgres -h hostname -f createdb.sql
psql -U postgres -h hostname -d cognicity -f schema.sql
To build on OS X we recommend using homebrew to install node, npm, and required node modules as follows:
brew install node
npm install
To build on Windows we recommend installing all dependencies (making sure to use all 32 bit or all 64 bit, depending on your architecture) plus following the instructions (for Windows 7 follow the Windows 7/8 instructions) for node-gyp and then:
pg_config
, andnpm install
.App configuration parameters are stored in a configuration file which is parsed by app.js. See sample-reports-config.js for an example configuration.
Set the app authentication parameters as provided by Twitter. See the ntwitter-module documentation for more details.
Messages can be at most 109 characters long if addTimestamp is enabled, or 123 characters long if addTimestamp is disabled. Note that this length includes one shortened URL at current lengths - see https://dev.twitter.com/overview/t.co for details.
The app is run as a background process using the Daemonize 2 library. The process name is set to the configuration instance config.instance
defined in the configuration file.
$ cd cognicity-server/
$ node daemon.js sample-config.js start
project-name daemon started. PID 1000
$node daemon.js sample-config.js status
project-name running
$node daemon.js sample-config.js stop
project-name daemon stopped
Express logger writes to project-name.log
This software is released under the GPLv3 License. See License.txt for details.