Giter Site home page Giter Site logo

thepigeonoftime / ooni-explorer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ooni/explorer-legacy

0.0 1.0 0.0 1.35 MB

ooni-explorer: public interface to explore measurements gathered by ooni-probe

Home Page: https://explorer.ooni.torproject.org/

JavaScript 72.29% HTML 19.30% CSS 7.52% Shell 0.89%

ooni-explorer's Introduction

OONI Explorer

This is the code for the OONI Measurement Explorer accessible via:

https://explorer.ooni.torproject.org/

Setup

On Mac OS X

brew install node

Install dependencies

Install the node dependencies:

npm install --development
npm install -g jshint
npm install -g bower
npm install -g grunt-cli
npm install -g strongloop

Then install the bower dependencies:

bower update

Development environment

To run this within a development environment for network and postgres free development do:

NODE_ENV="development" grunt serve

Edit the script inside of server/boot/create-fixtures.js to create custom fixtures for development.

Local staging

Setup a test postgres database

On Mac OS X you can use PostgresApp.com/

Then add to your PATH the following directory:

export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin

Run the postgres shell and run the following commands:

# Create the user
CREATE USER ooni WITH PASSWORD 'seCure'

# Create the dummy database
CREATE DATABASE ooni_explorer

# Grant the priviledges
GRANT ALL PRIVILEGES ON DATABASE ooni_explorer to ooni

Run

If needed edit server/datasources.staging.js to suit your needs.

Then build the app for production with:

grunt build

Then you can run it in staging by running:

NODE_ENV="staging" node .

Production deployment

For more details about deploying in production see docs/deployment.md

Generate angular.js $resources

To regenerate the angular.js services from the server-side REST API spec run:

lb-ng server/server.js client/ngapp/scripts/services/lbclient.js

ooni-explorer's People

Contributors

hellais avatar simonv3 avatar bnvk avatar agrabeli avatar anadahz avatar trentaimmagini avatar joelanders avatar

Watchers

The Pigeon Of Time avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.