- Clone the repo
cd lecca-io
- Install Node.js (version > 20) and npm
- Install pnpm globally:
npm install -g pnpm
- Install dependencies:
pnpm install
- (Optional) Install NX Console VS Code extension.
- Locate the
.env.example
file in the root directory - Create a new
.env
file and copy the contents from.env.example
- Modify the variables as needed for your setup
Note: These are the minimum required variables to run the platform. For full functionality, refer to server.config.ts
for all possible environment variables and their use cases.
Before starting the server, you'll need a running database. This can be done using Docker:
- Install Docker for your OS if you don't have it.
- Run the following command (customize values as needed):
docker run --name docker-container-name -d -e POSTGRES_DB=mydb -e POSTGRES_PASSWORD=password123 -e POSTGRES_USER=postgres -p "5432:5432" postgres
- Run the following command to migrate your database to match the prisma schema.
pnpm prisma migrate dev
Run the following command in the root directory:
pnpm nx serve server
You should see a log of all available services running. If any required environment variables are missing, error messages will appear in the logs.
Run the following command in the root directory:
pnpm nx serve ui