Skip to content

Workspace setup

Before developing the code, there are a few steps to follow.

  1. Make sure you have all the required dependencies installed:

    • Go
    • Vue
    • pnpm (other Vue compatible package managers, should also work)
  2. Download the source code from GitHub. There are usually three methods to choose from. Use the one that suits you best.

    Terminal window
    # HTTPS:
    git clone https://github.com/czoczo/casavue.git
    # SSH:
    git clone git@github.com:czoczo/casavue.git
    # GitHub CLI:
    gh repo clone czoczo/casavue
  3. Build Vue frontend

    Terminal window
    cd frontend
    pnpm install
    pnpm run build
    cd ..
  4. Build CasaVue binary

    Terminal window
    go mod init casavue
    go mod tidy
    go build

Moreover, should you want to change anything in frontend, you can use Vue in dev server mode to have a live view of introduced changes.

Terminal window
cd frontend
pnpm install
pnpm run dev