hurwitzlab/imicrobe-admin-console

Name: imicrobe-admin-console

Owner: Hurwitz Lab

Owner: Hurwitz Lab

Description: A Flask-Admin interface to the iMicrobe database.

Created: 2017-07-08 10:39:47.0

Updated: 2018-06-11 18:39:16.0

Pushed: 2018-06-11 18:32:47.0

Homepage:

Size: 61

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

flask-imicrobe

A demonstration iMicrobe app server built with Flask.

Install
  1. clone this repository
  2. add this line to the imicrobe-vm Vagrantfile to forward port 5000 on the host to the imicrobe-vm: config.vm.network "forwarded_port", host: 5000, guest: 5000
  3. add a line such as this to the imicrobe-vm Vagrantfile to mount the flask-imicrobe directory inside the vm: config.vm.synced_folder "/Users/jlynch/project/imicrobe/flask-imicrobe", "/flask-imicrobe"
  4. start the imicrobe-vm with vagrant up
  5. ssh into the imicrobe-vm with vagrant ssh
  6. create a virtual environment for the app server:
    python3.6 -m venv ~/venv/flim
    source ~/venv/flim/bin/activate
    lim)$ cd /flask-imicrobe
    lim)$ pip install -r requirements.txt
    
  7. run the development app server and allow connections from outside with --host 0.0.0.0:
    lim)$ cd /flask-imicrobe
    lim)$ python manage.py runserver --host 0.0.0.0
    
  8. visit http://localhost:5000/api/v1.0.0/project/ from a browser on the host system

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.