GithubHelp home page GithubHelp logo

shunsunsun / discovery-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from biothings/discovery-app

0.0 0.0 0.0 20.96 MB

The Data Discovery Engine project by the CD2H Data working-group

Home Page: http://discovery.biothings.io

License: Apache License 2.0

Python 12.12% HTML 51.60% JavaScript 31.12% Dockerfile 0.03% SCSS 4.49% CSS 0.64%

discovery-app's Introduction

Discovery

A Web Schema Visualization App

Run a local dev server

  1. Install Elasticsearch at localhost:9200 (follow this instruction)
  2. Clone this repo
    git clone https://github.com/biothings/discovery-app.git
    
  3. Install system packages (on Ubuntu, for example)
    sudo apt install libcurl4-openssl-dev libssl-dev
    
  4. Change directory to project folder
    cd discovery-app
    
  5. Install python dependencies
    pip install -r requirements.txt
    
  6. Create a config_key.py under project folder with
    COOKIE_SECRET = '<Any Random String>'
    GITHUB_CLIENT_ID = '<your Github application Client ID>'
    GITHUB_CLIENT_SECRET = '<your Github application Client Secret>'
    
    Follow this instruction to create your Github Client ID and Secret.
  7. Run dev server
    python index.py --debug
    

You should now be able to access the homepage at http://localhost:8000/

Run in Docker

First refer to step 5 above to setup the credentials required to run the program.
The following commands should be issued under the first level project folder.
Make sure you have port 8000 and 9200 not in use when starting containers.

Build

docker-compose up --detach

Stop and restart

docker-compose stop
docker-compose start

Update codebase

docker-compose exec web git pull

Remove containers

docker-compose down

discovery-app's People

Contributors

marcodarko avatar newgene avatar andrewsu avatar jmcmurry 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.