0.0.8 • Published 3 years ago

@triply/ldwizard-core v0.0.8

Weekly downloads
1
License
TBD
Repository
-
Last release
3 years ago

LDWizard-Core

The core functional implementation of the LD Wizard Interface.

You can use this package in order to build your own LD Wizard Application.

See the LD Wizard design document for more information about the LD Wizard framework.

See the Cultural Heritage Wizard for an example of a fully configured implementation for a specific domain.

Building your own LDWizard package

  1. Install Node.js and Yarn.

    On Ubuntu this is done with the following commands. Check the project websites for installation on other operating systems.

    curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
    curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
    echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
    sudo apt update
    sudo apt install nodejs yarn
  2. Add this package to your dependencies via

    • Yarn

      yarn add @triply/ldwizard-core
    • NPM

      npm install @triply/ldwizard-core
  3. Create a configuration file

    // This is a template file
    import WizardConfig from @triply/ldwizard-core/lib/WizardConfig;
    const wizardConfig: WizardConfig = {};
    export default wizardConfig;
  4. Run the script to create you local instance

    • Yarn

      yarn exec ldwizard-build path/to/configFile.ts

    Your package should now be available in the lib directory

Building your own LDWizard container

Local use / development

To start using a local instance for testing/development follow these steps

  1. Install Node.js and Yarn.

    On Ubuntu this is done with the following commands. Check the project websites for installation on other operating systems.

    curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
    curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
    echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
    sudo apt update
    sudo apt install nodejs yarn
  2. Clone this repository and go into its root directory.

  3. Run yarn to install the dependencies.
  4. Run yarn dev to start the LD-wizard in local development with the default configuration.
  5. Go to http://localhost:4000 in your favorite web browser.

Creating a new version

yarn build && yarn publish
0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago