Skip to content

Latest commit

 

History

History
126 lines (93 loc) · 2.66 KB

File metadata and controls

126 lines (93 loc) · 2.66 KB

Quick Start Guide

Get BioAnalyzer Backend up and running in 5 minutes.

Prerequisites

You'll need:

  • Docker 20.0+ with Docker Compose support (recommended)
  • Python 3.8+ (for local installation, optional)
  • Internet connection
  • Git

Docker Setup (Recommended)

Works on modern Linux systems.

git clone https://github.com/waldronlab/bioanalyzer-backend.git
cd bioanalyzer-backend

chmod +x install.sh
./install.sh

docker compose build
docker compose up -d

docker compose ps
curl http://localhost:8000/health

export PATH="$PATH:/home/ronald/.local/bin"
BioAnalyzer fields

Open http://localhost:8000/docs for API documentation.

Local Python Setup

Note: This may encounter issues with externally managed Python environments.

git clone https://github.com/waldronlab/bioanalyzer-backend.git
cd bioanalyzer-backend

sudo apt install python3.12-venv python3-full
python3 -m venv .venv
source .venv/bin/activate

# Install package from pyproject.toml (modern Python packaging)
pip install -e .
# Or with development dependencies: pip install -e .[dev]

cat > .env << EOF
NCBI_API_KEY=your_ncbi_key_here
GEMINI_API_KEY=your_gemini_key_here
EMAIL=your_email@example.com
EOF

python main.py

Testing

Docker:

Local:

Common Issues

externally-managed-environment error:

# Use Docker (recommended)
docker compose build
docker compose up -d

# OR install python3-venv
sudo apt install python3.12-venv python3-full

docker-compose command not found:

# Use newer Docker Compose syntax
docker compose build
docker compose up -d

BioAnalyzer command not found:

export PATH="$PATH:/home/ronald/.local/bin"
# Or restart terminal after running ./install.sh

Port already in use:

sudo lsof -i :8000
# Use different port in docker-compose.yml or stop other services

API not responding:

docker compose ps
docker compose logs
docker compose restart

Verification

Next Steps

Need help? Check the troubleshooting section in the main README.