https://github.com/mitre/policynet
Exploration of the U.S. rulesets as a network
https://github.com/mitre/policynet
Last synced: 5 days ago
JSON representation
Exploration of the U.S. rulesets as a network
- Host: GitHub
- URL: https://github.com/mitre/policynet
- Owner: mitre
- License: apache-2.0
- Created: 2016-06-16T05:35:44.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-05-20T20:45:12.000Z (almost 3 years ago)
- Last Synced: 2025-04-01T14:37:26.701Z (25 days ago)
- Language: Python
- Size: 2.99 MB
- Stars: 15
- Watchers: 6
- Forks: 7
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
PolicyNet
=========# [Demo](http://policynet.mitre.org/intro)
## Requirements
* JDK 1.8 (`java-1.8.0-openjdk` & `java-1.8.0-openjdk-devel`) + maven
* node.js + npm
* Python2.7 + pip + virtualenv
* Neo4J
* Elastic
* PostgreSQL## Install
```bash
$ npm install
```
### Copy the sample configuration file and make appropriate changes
```bash
$ cp src/server/js/config.example.js src/server/js/config.js
```
### Ingest data
#### Make sure Neo4J, Elastic, and PostgreSQL are up and running. A PostgreSQL user and an empty PostgreSQL database (that the user has access to) is required.
```bash
$ node src/server/import/import.js pg_user pg_pass pg_database
```
An alternative import mechanism (for PostgreSQL -> Neo4J stage) is provided, which our tests have shown to be more performant on OS X (but less performant on CentOS).
```bash
$ node src/server/import/import.js pg_user pg_pass pg_database alt
```## Usage
```bash
$ export PORT=8080 # (optional) set port. Needs privilaged user to bind to port < 1024
$ npm run serve # production
$ npm start # development
$ npm restart # restart development if server did not recover from fault
```### Known Issues
* none