Skip to content

Latest commit

Β 

History

History
43 lines (34 loc) Β· 1.13 KB

README.md

File metadata and controls

43 lines (34 loc) Β· 1.13 KB

RO-Crate Validation Service

This project presents a Flask-based API for validating RO-Crates.

Project Structure

app/
β”œβ”€β”€ ro_crates/
β”‚   β”œβ”€β”€ routes/
β”‚   β”‚   β”œβ”€β”€ __init__.py         # Registers blueprints
β”‚   β”‚   └── post_routes.py      # POST API routes
β”‚   └── __init__.py             
β”œβ”€β”€ services/
β”‚   β”œβ”€β”€ logging_service.py      # Centralised logging
β”‚   └── validation_service.py   # Queue RO-Crates for validation
β”œβ”€β”€ tasks/
β”‚   └── validation_tasks.py     # Validate RO-Crates
β”œβ”€β”€ utils/
β”‚   β”œβ”€β”€ config.py               # Configuration
β”‚   β”œβ”€β”€ minio_utils.py          # Methods for interacting with MinIO
β”‚   └── webhook_utils.py        # Methods for sending webhooks

Setting up the project

Prerequisites

  • Docker with Docker Compose

Installation

  1. Clone the repository:

    git clone https://github.com/eScienceLab/Cratey-Validator.git
    cd crate-validation-service
  2. Build and start the services using Docker Compose:

    docker compose build
    docker compose up