Lecca.io LogoLecca.io
Dev environment

Database

Before starting the server, you'll need a running database. You can either install postgres onto your machine or use Docker. We recommend using Docker.

  1. Install Docker for your OS if you don't have it.

  2. Run the following command (customize values as needed):

    docker run --name lecca-io-db -d -e POSTGRES_DB=lecca -e POSTGRES_PASSWORD=password123 -e POSTGRES_USER=postgres -p "5432:5432" postgres
    Make sure these database values match your .env values.
  3. Run the following command to migrate your database to match the prisma schema. pnpm prisma migrate dev