Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.23 KB

README.md

File metadata and controls

43 lines (30 loc) · 1.23 KB

biochatter-server

This repository contains the FastAPI app to provide a RESTful API for BioChatter. It is used in the BioChatter Next web application.

Installation

The app is available as a Docker image from Dockerhub. To run the server, you need to have Docker installed.

docker run -p 5001:5001 -d biocypher/biochatter-server

Local Build

You can also run the following code to build and start the server locally:

docker build -t biochatter-server .
docker run -p 5001:5001 -d biochatter-server

API docs

API docs are work in progress. Use swagger to explore the API by opening the server's /docs URI. For example, for localhost it will be:

http://0.0.0.0:5001/docs

Developer

We build the Docker image using the following command to account for ARM and AMD64 architectures:

docker buildx build --tag biocypher/biochatter-server:latest --tag biocypher/biochatter-server:<version> --platform linux/amd64,linux/arm64 --push .

The version on Dockerhub should match the version in the pyproject.toml file.