NCATS-Tangerine/biolink-beacon

Name: biolink-beacon

Owner: NCATS Data Translator Project - Tangerine Team

Description: Monarch Biolink Knowledge Beacon implementation (as a Python Flask application)

Created: 2017-06-26 17:56:11.0

Updated: 2017-07-19 01:10:15.0

Pushed: 2017-11-08 15:51:35.0

Homepage: null

Size: 37

Language: Python

GitHub Committers

UserMost Recent Commit# Commits
Richard Bruskiewich2017-11-08 15:51:12.029
Lance Hannestad2017-07-28 22:35:25.023

Other Committers

UserEmailMost Recent Commit# Commits

README

biolink-beacon

Monarch Biolink Knowledge Beacon implementation (as a Python Flask application).

Quickstart (Using Docker)

This project is designed to run as a Docker container. Note that although the Docker client used to manage containers runs on several operating systems, the container engine currently only runs under Linux. See the Docker Guide for details on how to install Docker.

Then with Docker installed, you can build an image from the Dockerfile provided in the main directory of this project.

iolink-beacon
er build -t ncats:biolink .

Note that depending on your Docker installation, you may need to run the docker command as 'sudo'. Within the Docker container, the Flask app is set to run at 0.0.0.0:5000. You can re-map ports when you run a Docker image with the -p flag.

er run --rm -p 8080:5000 ncats:biolink

Now open your browser to localhost:8080 to see the application running.

Running the Server Outside Docker

You must install flask and ontobio. Then in the terminal run the project as described in the flask quickstart.

On Linux and OSX:

port FLASK_APP=main.py
ask run

On Windows:

t FLASK_APP=main.py
ask run

By default it runs at http://127.0.0.1:5000/. You can change the host and port with -h and -p flags as such:

ask run -h 0.0.0.0 -p 8080

Make sure you are using the latest version of python. It is recommended that you install and use this project from within a virtual environment.

Issues

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.