frontend/README.md
/frontend) as root for your workspace.pnpm for package management, you should have it installed before getting started. (Tutorial)desktop/ directory, sub apps are under providers/<package>/.The post install script will run automatically, and local packages should be built.
pnpm install
cd desktop
pnpm gen:global && pnpm gen:region
.env.template files are located at the workspace root directory for each app. Duplicate and rename them to .env, then fill the required configurations.
NEXT_PUBLIC_MOCK_USER is the kubeconfig mocked for development, you can copy it from your Sealos desktop. (Only one line allowed, you should escape the line breaks)
You can either run apps in workspace root or in specific app's directory.
# Run desktop app
pnpm dev-desktop
# Run specific provider app
pnpm dev-app # applaunchpad
pnpm dev-db # dbprovider
pnpm dev-cost # costcenter
pnpm dev-terminal # terminal
pnpm dev-template # template
pnpm dev-cronjob # cronjob
pnpm dev-devbox # devbox
# or run dev script in app's package directory
cd desktop
pnpm dev
cd frontend
# add remote
pnpm --filter=<path> -r add <package>
# such as:
# pnpm --filter=providers/costcenter -r add lodash
# pnpm --filter=desktop -r add lodash
# add local
pnpm --filter=<path> -r --offline add <package>
# such as:
# pnpm --filter=providers/costcenter -r --offline add sealos-desktop-sdk
# pnpm --filter=desktop -r --offline add sealos-desktop-sdk
# sealos/frontend
make image-build-<app> DOCKER_USERNAME=<your_account> IMAGE_TAG=<tag>
# such as:
# make image-build-providers/costcenter
# make image-build-desktop
# make image-build-desktop IMAGE_TAG=test DOCKER_USERNAME=sealos
# multi jobs build
make -j
make all DOCKER_USERNAME=<your_account> to build all apps for your account.make all IMAGE_TAG=<tag> to build all apps and customize tag (default:dev)# sealos/frontend
make image-push-<app> DOCKER_USERNAME=<your_account> IMAGE_TAG=<tag>
# such as:
# make image-push-providers/costcenter
# make image-push-desktop
# publish all
make push-images DOCKER_USERNAME=<your_account> IMAGE_TAG=<tag>
Refer to other apps to add some configuration.
In order to support multiple namespaces, the method of obtaining 'namespace' in the backend should be replaced with the method of obtaining it from 'kubeconfig' instead of adding 'ns-' to 'user' for generation purpose.