Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Commit

Permalink
Merge pull request #69 from multinet-app/doc-update
Browse files Browse the repository at this point in the history
Clarify installation documentation
  • Loading branch information
waxlamp committed Jun 27, 2019
2 parents f808dfd + cba5ee6 commit 91c8f93
Showing 1 changed file with 49 additions and 18 deletions.
67 changes: 49 additions & 18 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,49 @@ multinet-girder
=================
A Girder plugin proof-of-concept for a MultiNet API / web application

.. highlight:: sh

Installation
=================

Set Up Multinet/Girder
----------------------

1. Clone this repository: ``git clone
https://github.com/multinet-app/multinet-girder; cd multinet-girder``.
2. Start the mongo and arango databases using docker-compose: ``docker-compose
up``. NOTE: macOS users may encounter errors in this step regarding
1. Clone this repository: ::

$ git clone https://github.com/multinet-app/multinet-girder
$ cd multinet-girder

2. Start the mongo and arango databases using docker-compose: ::

$ docker-compose up

NOTE: macOS users may encounter errors in this step regarding
filemounts denied to the Docker process; to solve this issue, create two
directories somewhere (e.g. ``mkdir -p ~/.local/multinet/mongo; mkdir -p
~/.local/multinet/arango``), launch the Docker container using
``MONGO_DATA=~/.local/multinet/mongo ARANGO_DATA=~/.local/multinet/arango
docker-compose up -d``.
3. Use pipenv to create a virtual environment and install the dependencies:
``pipenv install``.
4. Build the Girder web client: ``pipenv run girder build``.
5. Start the Multinet server: ``yarn start:server``.
directories somewhere, e.g.::

$ mkdir -p ~/.local/multinet/mongo
$ mkdir -p ~/.local/multinet/arango

and then launch the Docker container using::

$ MONGO_DATA=~/.local/multinet/mongo ARANGO_DATA=~/.local/multinet/arango
docker-compose up -d

3. Use pipenv to create a virtual environment and install the dependencies: ::

$ pipenv install

4. Build the Girder web client: ::

$ pipenv run girder build

5. Start the Multinet server: ::

$ yarn start:server

6. Open the Multinet Girder application and register a user (which will become
an admin user): http://localhost:9090.
an admin user) at http://localhost:9090.

A Note on Passwords
~~~~~~~~~~~~~~~~~~~
Expand All @@ -40,17 +62,26 @@ an ``ARANGO_PASSWORD`` environment variable.

To illustrate, if the Step 2 invocation looks like::

ARANGO_PASSWORD=hunter2 docker-compose up
$ ARANGO_PASSWORD=hunter2 docker-compose up

then the corresponding command to launch the server in Step 5 will look like::

ARANGO_PASSWORD=hunter2 yarn start:server
$ ARANGO_PASSWORD=hunter2 yarn start:server

Run Sample Client
-----------------

1. Move into the client code directory: ``cd client``.
2. Install dependencies: ``yarn install``.
3. Serve the application: ``yarn serve``.
1. Move into the client code directory: ::

$ cd client

2. Install dependencies: ::

$ yarn install

3. Serve the application: ::

$ yarn serve

4. Visit the sample client by opening the displayed URL (the Vue builder will
choose an open port and show you).

0 comments on commit 91c8f93

Please sign in to comment.