Get ChRIS Running

Time to run ChRIS!
In this tutorial, you'll get ChRIS up and running on your laptop or workstation. Use these instructions to play around with it, or to get started setting up a development environment so you can start working on it.This tutorial is based on the README files for the ChRIS backend repository and the ChRIS UI repository. Where these instructions may end up differing with those resources, the README files will always be the most up-to-date and correct. We provide this tutorial as a single comprehensive document to get you started.
Pre-requisites
- A laptop or workstation running Linux (Fedora*, CentOS, Ubuntu, or Debian), Mac OS X 10.14+, or Windows 10 (64-bit).
- Docker 18.06.0+ with Docker Compose 1.22.0+ (Use link for your distro / OS above.)
- (Linux-only) Your OS user should be in a
docker
user group. After installing Docker, do the following in a terminal:sudo groupadd docker
sudo usermod -aG docker $USER
- Log out, and log back in.
Get the ChRIS backend (CUBE) up and running
After you've met the pre-requisites, you'll need to the ChRIS backend up and running. (The ChRIS backend is also called CUBE, an acronym for ChRIS Ultron Back End.) This is the core of ChRIS, not including its web interface (we'll get that working after.)
We're going to set up a development version of ChRIS. (It will use the default Django development server and therefore is not suitable for production.) If you are interested in setting ChRIS up for production, please refer to the README in the CUBE repository.
Open up a terminal on your system and follow these steps:-
Clone the ChRIS backend repo.
git clone https://github.com/FNNDSC/ChRIS_ultron_backend
- Go into the ChRIS backend directory.
cd ChRIS_ultron_backend
-
Run CUBE.
- Run with tests:
./unmake.sh ; sudo rm -fr FS; rm -fr FS; ./make.sh
- Skip unit and integration tests:
./unmake.sh ; sudo rm -fr FS; rm -fr FS; ./make.sh -U -I -s
- Run with tests:
Tearing down the ChRIS backend
You can later remove all the backend containers and release storage volumes with:
$ cd ChRIS_ultron_backEnd $ sudo rm -r FS $ ./unmake.sh
Get the ChRIS UI frontend up and running
Now that you have CUBE, the ChRIS backend, running, it's time to get the ChRIS web-based UI working. The ChRIS UI is written primarily in TypeScript and React, and uses the PatternFly React pattern library.
Open up a terminal on your system and follow these steps:-
Clone the ChRIS UI repo.
$ git clone https://github.com/FNNDSC/ChRIS_ui.git
- Go into the ChRIS UI directory.
cd ChRIS_ui
-
Run the ChRIS UI.
docker run --rm -it -v $(pwd):/home/localuser -p 3000:3000 -u $(id -u):$(id -g) --name chris_ui fnndsc/chris_ui:dev
-
Open the website in a browser.
http://localhost:3000
What's Next?
Now that you've got a got both the ChRIS backend and ChRIS front end running, why not set up the ChRIS store?

Set Up the ChRIS Store
If you want to work on the ChRIS store, or need to test loading plugins into a ChRIS instance, you'll need to get the ChRIS store running on your system. Here's how.