Skip to content

ncbj-idea/zefir-backend

Repository files navigation

NCBiR backend

The repository contains a backend to the web application for the NCBiR project.

Make setup

Check if make is already installed

make --version

If not, install make

sudo apt install make

Make stages

Install virtual environment and all dependencies

make install

Run linters check (black, pylama)

make lint

Create a copy of env file, create and start docker containter defined in docker-compose.yml

make run

Stop and remove container

make down

Remove temporary files such as .venv, .mypy_cache, .pytest_cache etc.

make clean

Run unit tests (runs lint stage before)

make test

Quick Start

Run docker container

Ensure Docker has been installed before

make run

Creating project environment

You can create virtual environment using make:

make install

or manually:

# Create and source virtual Environment
python -m venv .venv
source .venv/bin/active

# Install all requirements and dependencies
pip install .
pip install .[dev]

# Init pre-commit hook
pre-commit install

Usage

After creating the container, the swagger will be available at: http://localhost/api/v1/docs

Port can be assign in .env file (default is 5050)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages