bioimage-io / bioimageio-uploader

1 stars 2 forks source link

Uploader Overview

stateDiagram-v2
    User --> Client
    Upload --> ZipFile
    ZipFile --> PresignedURL_Zip
    CreateStatus --> status.json
    status.json --> Status
    Unzip --> FileSet
    CreateTritonModel --> TritonModel
    TestTritonModel --> BioEngineRunner
    TritonModel --> BioEngineRunner
    Publish --> PublishedFileSet
    PresignedURL_Zip --> Unzip

    state Client {
        Add --> Edit
        Edit --> Verify
        Verify --> Upload
        PresignedURL_Zip
        Status 
    }

    state CI{
        CreateStatus
        Unzip --> TestModel
        TestModel --> CreateTritonModel
        CreateTritonModel --> TestTritonModel
        TestTritonModel --> Publish
    }

    state HyphaAppEngine {
        HyphaS3
        BioEngineRunner

        state HyphaS3{
            ZipFile
        }
    }

    state EBI_S3 {
        status.json
        FileSet
        TritonModel
    }

    state Zenodo {
        PublishedFileSet
    }

Developing

Start a development server:

First, we need to make sure we use the correct version of node:

nvm use 20
ntl dev

# or run without netlify functions: 
npm run dev 

Building

To create a production version of the app:

npm run build