This document provides step-by-step instructions for setting up and running the WHAM server locally.
To run the server locally, the overall approach is to clone the repo, create a python virtual environment, and install the dependencies and application. This is typically a one-time activity.
Clone the repository to your local machine:
git clone https://github.com/FNNDSC/wham.git cd wham
Install the required dependencies using pip
:
pip install -r requirements.txt
Now, assuming the application an dependencies are setup in a local python virtual environment, start MongoDB locally or using Docker Compose:
docker-compose up
Run the FastAPI server using uvicorn
:
uvicorn app.main:app --reload --host 127.0.0.1 --port 8000
Open your browser and navigate to: - API Root: http://127.0.0.1:8000 - Interactive API Docs: http://127.0.0.1:8000/docs