Installation
Install and start TissueLab Self-Hosted.
Architecture
- AppDesktop window or browser · port 3000
- ServiceSlides, tiles, workflows · port 5001
- Model nodesOne conda env each · ports 8001+
- GPUDedicated, CUDA preferred
Requirements
| Recommended | |
|---|---|
| OS | Windows 11, macOS on Apple silicon (M-series), or Linux |
| Processor | Intel Core i7 / AMD Ryzen 7 class, 8 cores or more; Apple M-series on Mac |
| Memory | 16 GB RAM or more |
| Graphics | Dedicated GPU with 8 GB VRAM; NVIDIA (CUDA) preferred |
| Software | Node.js 24+, Python 3.11 with conda |
| Optional | Docker, for the Research panel only |
- Intel-based Macs are not supported.
- The viewer and the service run without a GPU; the model nodes are what need one.
Install and run
Commands are the same on macOS (Terminal, bash) and Windows (PowerShell) unless a step shows two tabs.
Get the code
git clone https://github.com/zhihuanglab/TissueLab.git
cd TissueLab/appInstall the app
npm install
cd render
npm install
cd ..Set up the Python service
Create the environment first; conda asks for confirmation.
cd service
conda create -n tissuelab python=3.11Then install the service into it:
conda activate tissuelab
pip install -r requirements-macos.txt
cp .env.example .env.local
cd ..On Linux, use requirements-linux.txt.
Start the service
In the app folder. It listens on http://127.0.0.1:5001.
cd service
conda activate tissuelab
python main.pyTo check that it is up, open http://127.0.0.1:5001/api/v1/docs in a browser.
Other ways to run
| Goal | Command |
|---|---|
| Production-style desktop run | npm run build, then npm start, in app |
| Browser instead of the desktop window | npm run dev in app/render, then open http://localhost:3000 |
Service from the app folder | npm run start-backend |