Skip to content

Yundera/settings-center-app

Repository files navigation

Yundera Build and Push Docker Image

App Dashboard

Architecture

The project is composed of two sub-projects, managed as GitHub submodules:

  1. settings-dashboard
    Path: ./settings-dashboard/
    Documentation: settings-dashboard readme

  2. dashboard-core
    Path: ./dashboard-core/
    Documentation: dashboard-core readme

Getting Started

Installation

Install project dependencies:

pnpm install

Configuration

Configure the following environment variables by referring to their respective documentation:

  1. Core Configuration
    Path: ./settings-dashboard/config/core.env.json
    Documentation: core.env.json documentation

Development

Option 1: Standard Development Server

Start the development server:

pnpm start

Option 2: Docker Environment (Recommended)

Use Docker to simulate a PCS (Personal Cloud Server) environment, which is closer to the real deployment environment. This simulates a state just after a PCS has been created (with .env and os-init.sh executed)

Setup Steps:

  1. Configure the development environment
    Configure dev-env according to dev/run/dev-env.example

  2. Start the Docker environment
    Ensure Docker is running, then execute:

    .\dev\run-simple.ps1

Important Notes:

  • Clean Installation: The run-simple script automatically cleans Docker volumes for fresh testing
  • Yundera stack: this process will create a non-functional Yundera stack that can be ignored
  • Authentication: The login credentials will be those defined by the authority in config/core.env.json under "AUTHORITY_ENDPOINT"

Deployment

Build and publish using Dockflow:

npx dockflow build
npx dockflow publish

Project Structure

./
├── settings-dashboard/          # Main dashboard application
│   ├── config/
│   │   ├── core.env.json
│   └── readme.md
├── dashboard-core/              # Core functionality
│   └── readme.md
└── README.md*