All following commands must be run only once at project installation.
git clone https://github.com/Terralego/opp-front.gitfollow official procedures for nvm
nvm install && nvm use # only once per launched shell
nvm $argsnpm ciBefore launching dev server, you need to define API url
cp public/.env.dist.json public/.end.jsonEdit this file, and set api backend url
{
// example with backend app in dev mode
"API_PROVIDER": "http://127.0.0.1:8000/api"
}npm startnpm testnpm i {nameModule}` -Dnpm update {nameModule}localStorage.debug = 'terralego:*'build app
npm run buildserve local build
npx serve -s buildWARNING !
In build mode, a frontend proxy should redirect all /api requests to backend application