Before running the application, you need to have the following prerequisite installed:
- Postgres Server: The application uses Postgres for storing data. Install the server from https://www.postgresql.org/download/.
To set up the application for development, follow these steps:
- Install the dependencies:
pnpm install
-
Set the environment variables: Create a .env file in the root directory and add the variables from the local .env.example file
-
Generate the Prisma client:
pnpm prisma generate
- Run the database migrations:
pnpm prisma db push
Start the servers:
pnpm dev
pnpm install
pnpm build