https://github.com/jplusplus/wikileaks-kissinger-cables
The map and graph modules of Wikileak's ProjectK, the diplomatic cables of the Kissinger era.
https://github.com/jplusplus/wikileaks-kissinger-cables
Last synced: 10 months ago
JSON representation
The map and graph modules of Wikileak's ProjectK, the diplomatic cables of the Kissinger era.
- Host: GitHub
- URL: https://github.com/jplusplus/wikileaks-kissinger-cables
- Owner: jplusplus
- Created: 2013-04-08T14:05:22.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2014-01-03T14:57:15.000Z (over 12 years ago)
- Last Synced: 2024-04-14T04:55:28.371Z (about 2 years ago)
- Language: JavaScript
- Homepage: http://search.wikileaks.org/plusd/graph
- Size: 6.67 MB
- Stars: 18
- Watchers: 11
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wikileaks: Kissinger Cables
## Installation
### Software dependencies
To make the project up and running, you need:
* **Node** 0.8.19
* **NPM** 1.1.32
* **PostGreSQL** 9.1
### Step 0:
Esnure that postgresql-server-dev-9.1, libxml2, libxml2-dev and gyp packages are present on your system.
### Step 1: Download the dependencies
The app is build at the top of the pleasant [Node Package Manager](http://npmjs.org/). To download and set up the whole dependancies three, simply run from the project's root directory :
$ npm install
### Step 2: Edit the configuration
#### Use configuration file
The default configuration is present into *config/default.json*. Every modifications in this file will be commited. The *runtime.json* file is an auto-generated file that you shouldn't edit.
* **Development mode**: If you want to overide default values, you have to create a file named *config/development.json* and corresponding to your local configuration. This file will be ignored by git.
* **Production mode**: if you want to overide default values, you have to edit the *config/production.json* file to fit with your production environment. This file will be ignored by git.
#### Alternative: use environment variables
The following environment variables can be use with the highest priority :
* **PORT** defines the port to listen to (ex: *80*);
* **DATABASE_URL** defines the database URL;
* **NODE_ENV** defines the runtime mode that affects the configuration (ex: *development*, *production*, etc).
### Step 3: Build the database
Download the ngram's database [from this torrent](https://thepiratebay.se/torrent/8354260) then extract the downloaded archive:
$ gzip -d ngrams.sql.gz
Finally, import the sql file into your database. **214,549,557 lines, it can be long**:
$ psql DATABASE_NAME < ngrams.sql
### Step 4: Run!
To launch the application enter the following command:
$ node app.js
Your application is now available from [localhost:3000/plusd/](http://localhost:3000/plusd/)!
### Common issues
* **Error: watch ENOSPC**: Do not run the application with DropBox on the same system.
Link: [https://groups.google.com/forum/?fromgroups=#!topic/nodejs/LX7sz9f-fmY](https://groups.google.com/forum/?fromgroups=#!topic/nodejs/LX7sz9f-fmY)
## GNU General Public License
This software is the property of [Journalism++](http://jplusplus.org) and licensed under the [GNU Genral Public License](https://www.gnu.org/licenses/gpl-3.0.txt).