GithubHelp home page GithubHelp logo

dfci / omero-iviewer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ome/omero-iviewer

1.0 8.0 0.0 9.82 MB

An OMERO.web app allowing to view images

Shell 0.29% Python 4.51% CSS 2.82% HTML 6.40% JavaScript 85.98%

omero-iviewer's Introduction

OMERO.iviewer

An OMERO.web app for visualizing images in OMERO.

Also see SUPPORT.md

Requirements

  • OMERO 5.4.0 or newer.

Build

In order to build you need:

  • nodejs version 6.x
  • npm version equal or greater to 3.0!

To build an uncompressed version, run:

$ npm run debug

To build an uglified version, run:

$ npm run prod

All builds will build into the build directory and deploy to the plugin directory which can then be used like any Django plugin.

Intructions on how to add the OMERO.iviewer app to your installed OMERO.web apps can be found in the OMERO.iviewer README.

Note:

Should you like or need to rebuild OMERO.iviewer's internal ol3 viewer, please read the section ol3-viewer below!

Development

Building the uncompressed version of iviewer as described above the application can be deployed locally or to a test server, to then be debugged. It is also possible to run/debug it with webpack dev-server:

$ npm run dev

will build the bundle and start the webpack dev-server (localhost:8080)

Either development setup expects the following:

  • an OMERO server installation
  • an iviewer 'deploy' to that OMERO server:
$ export PYTHONPATH=$PYTHONPATH:/path/to/iviewer-project-root/plugin
$ bin/omero config append omero.web.apps '"omero_iviewer"'

Notes:

The webpack dev-server config expects a local OMERO server at http://localhost (default port 80). Should the server instance use a different port you will need to modify all proxy target entries in webpack.dev.config.js:

devServer: {
    proxy: {
        '/iviewer/**': {
            target: 'http://localhost:your_port'
        },
        '/api/**': {
            target: 'http://localhost:your_port'
        }, ...
    }
}

If you want to bind the webpack dev server to a port other than 8080 you will need to change its port property in webpack.dev.config.js:

devServer: {
    port: your_port
}

The initial data type (e.g. image, dataset, well) and its respective ID can be set/changed in index-dev.html:

<html>
    <head>
        <link rel="stylesheet" type="text/css" href="build/css/all.min.css" />

        <script type="text/javascript">
            // modify according to your needs
            // in particular: choose an existing id !
            window.INITIAL_REQUEST_PARAMS = {
                    'VERSION': "DEV_SERVER",
                    'WEB_API_BASE': 'api/v0/',
                    //'IMAGES': "1",
                    'DATASET': "1",
                    //'WELL': "1"
            };
        </script>
...

Documentation

To build the html in build/docs, run:

$ npm run docs

ol3-viewer

The OMERO.iviewer's internal image viewer is based on OpenLayers 3,

The following software has to be installed in order to compile the java script code:

  1. npm (node package manager)
  2. apache ant (and therefore a java runtime)
  3. python (for closure's calcdeps.py)

To build the OpenLayers viewer for OMERO.iviewer (deploys into libs directory), run:

$ ant

For further options type ant -p.

More detailed resources on how to create a web app and development setup can be found at:

  1. CreateApp
  2. Deployment

omero-iviewer's People

Contributors

ersinciftci avatar jburel avatar joshmoore avatar sbesson avatar waxenegger avatar will-moore avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.