Skip to content

Setup webclient for development

Introduction

Welcome to the webclient project setup guide. In this guide, we will walk you through the steps required to set up the webclient project for development. We will be using Node Version Manager (nvm) to install and manage Node.js versions.

Install nodejs with nvm

  1. Install nvm

    Terminal window
    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
  2. Reload the shell

    Terminal window
    exec $$SHELL
  3. Install Node.js (version 20.5.0)

    Terminal window
    nvm install v20.5.0

Clone the repository

Clone the repository with the branch v2 as the default checkout.

Terminal window
git clone git@github.com:gisce/webclient.git -b v2

Copy the default environment

Terminal window
cp .env.sample .env

Then we have to install all the dependencies with

Terminal window
npm ci

Next, you can run a script to clone and run all related projects. This will clone, install, link, and run these projects in development mode. You only need to select them if you want to add a new feature to them.

The common projects to select are: react-ooui and ooui.

Terminal window
npm run link