Tangelo (from the resonant kit) is a tool that provides the web interface to REST Webservices and allows us to create the REST Webservices in easier manner. It also supports the plugin management, workflow management and many more features. You can refer to the detail of Tangelo in its home page at Tangelo Docs
Tangelo installation:
1. Install software dependencies
Install the following software:
- Python 2.7
- Pip
On Linux and OS X computers, your local package manager should be sufficient for installing these. On Windows, please consult this guide for advice about Python and Pip.
2. Install the Tangelo Python package
Use this command in a shell to install the Tangelo package and its dependencies:
pip install tangelo
Girder Server installation
Girder server provides many more features including the distributed data management, data authentication, authorization, Webservices and many more. You can refer to the home page of Grider (Girder Docs) for the details.
If you are using Ubuntu, you can install the prerequisite using the following command:
sudo apt-get install curl g++ git libffi-dev make python-dev python-pip libjpeg-dev zlib1g-dev
For other platforms, refer to the Girder home page (Girder Docs)
Its good idea to create a separate environment so that we don't mess up with our existing python packages. We can create a separate environment using the following commands:
sudo pip install -U virtualenv pip
The aboe command installs the virtualenv package. The following command creates the "girder_env" environment for our girder installation.
virtualenv ~/girder_env
To install the girder use the following command:
pip install girder
To install the girder web use the following command:
girder-install web
Run Girder
To run the server, first make sure the Mongo daemon is running. To manually start it, run:
mongod &
If you installed with pip, you will have the
girder-server
executable on your path and can simply callgirder-server
Girder Worker Installation
The girder worker allows use to create small worker (tasks) that can be orchestrated using the grider worker (workflow). We can define the chain of such tasks to create a workflow that can execute in serial manner. The output of one of the tasks can be fed to another task in the chain or workflow. For more detail, please refer to the home page of girder worker at Girder Worker Docs
The following command installs the prerequisite packages:
# Command for Ubuntu
sudo apt-get install libjpeg-dev zlib1g-dev
The easiest way is to install girder worker using pip command:
pip install girder-worker
Its better to have these packages installed in a single environment so that they can be integrated easily.
In the future posts, I will explain how to integrate these tools to create a working web application.
Thanks.
References:
Thanks.
References:
- Tangelo (Tangelo Docs)
- Girder (Girder Docs)
- GirderWorker (Girder Worker Docs)
No comments:
Post a Comment