In development mode, AskOmics dependencies can be deployed with docker-compose, but AskOmics have to be running locally, on your dev machine.

Prerequisites

Install dev dependencies

# Debian/Ubuntu
sudo apt install -y git python3 python3-venv python3-dev make gcc zlib1g-dev libbz2-dev liblzma-dev g++ npm
# Fedora
sudo dnf install -y git make gcc zlib-devel bzip2-devel xz-devel python3-devel gcc-c++ npm

Install docker:

Install docker-compose:

# Debian/Ubuntu
apt install -y docker-compose
# Fedora
dnf install -y docker-compose

Deploy dependencies

We provide a docker-compose template to run external services used by AskOmics. Clone the flaskomics-docker-compose repository to use it.

git clone https://github.com/askomics/flaskomics-docker-compose.git

Use the dev directory

cd flaskomics-docker-compose/dev

Deploy dockers

docker-compose up -d

Fork and clone AskOmics repository

Fork the AskOmics repository

then, clone your fork locally

git clone https://github.com/USERNAME/flaskomics.git # replace USERNAME with your github username

Deploy AskOmics in development mode

AskOmics installation and deployment is made with make. Use make help to see available commands.

Install

make install MODE=dev

Run

make serve MODE=dev NTASKS=10