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
-
Install nvm
Terminal window curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash -
Reload the shell
Terminal window exec $$SHELL -
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.
git clone git@github.com:gisce/webclient.git -b v2
Copy the default environment
cp .env.sample .env
Then we have to install all the dependencies with
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
.
npm run link