describo / crate-builder-component

A VueJS UI component to build an RO-Crate
MIT License
6 stars 3 forks source link
describo jsonld metadata-editor research-object ro-crate rocrate schema-org vue-component

Crate Builder Component

This is the core UI component for assembling an RO-Crate inside Describo. It is a self contained VueJS component that can be used inside your app. If you use this component, your app is responsible for loading the crate file from the storage layer (or minting a new one if none exists) and saving the updated crate back. Your app can also provide a profile to the component and a class to handle template lookups.

Documentation

Comprehensive documentation is available @ https://describo.github.io/docs/component/introduction.html

API Documentation

Developing the plugin

Storybook

Storybook is used in this application. When you are just developing the components, storybook is what you want as you can focus just on the component in isolation. To start it run:

npm run storybook

Development application

When you want to see the component in action as a whole, there is a small VueJS app in this codebase. To start up the dev environment:

> docker compose up (starts up an elastic search container for datapack lookups)
> npm run develop

--> browse to localhost:9000

Building and publishing a release

Building and publishing API docs - has to be separate stage

Repository structure