Skip to content

blockchain-lab-um/dataspaces-front-end-demo

Repository files navigation

Dataspace Front-end Demo

Setup Docker

  • docker build -t dataspace-frontend-demo .
  • docker run --env-file .env --name dataspace-frontend-demo -p 80:80 dataspace-frontend-demo

Setup development

  • Create .env.development file
  • npm install
  • npm run dev

Environmentals

ENV Type Default value Required Description
VITE_IS_PROVIDER boolean false
VITE_CONTROLPLANE_BASE_URL string / Without '/' at the end
VITE_CONTROLPLANE_MANAGEMENT_PATH string / Without '/' at the end
VITE_CONTROLPLANE_CATALOG_PATH string / Without '/' at the end
VITE_API_AUTH_HEADER string x-api-key
VITE_API_AUTH_HEADER_VALUE string /

When using ENV in Docker this is the ENV mapping: VITE_IS_PROVIDER -> FRONTEND_IS_PROVIDER (VITE is replaced with FRONTEND).

Example of Docker ENV: FRONTEND_IS_PROVIDER=true. There should be no whitespaces and no ".

For more information check .env files.

About

A simple frontend demo project for DSX Engine

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors