Local Environment Setup
This page explains how to set up the local development environment
Prerequisites
Ensure the following tools are installed on your system:
Node.js (version 20.11.0)
If you have nvm configured, the correct Node.js version will automatically be used when you navigate to the
ui
orapi
directories (based on.nvmrc
files).Otherwise, install Node.js 20.11.0 from Node.js downloads.
Yarn Install Yarn globally:
PostgreSQL
Install PostgreSQL locally (e.g., via PostgreSQL Downloads) and create DB
Or follow Database Setup
Setup Steps
Install Dependencies
Navigate to the
api
directory and run:Navigate to the
ui
directory and run:
Set Environment Variables
For the
api
: Create a.env
file and set:For the
ui
: Create a.env.development
file and set:
This is not the full list of environment variables. For the complete list of supported environment variables, please refer to the constants file where all available envs are defined.
You can find the constants files in:
UI:
ui/src/common/constants/constants.js
API:
api/src/constants.ts
Run the Applications
Start the backend server:
Start the frontend server:
Last updated