Requirements:
- git
- node
- pnpm
- docker
Once you've cloned a project and installed dependencies with pnpm install
,
Copy the environment variable file
cp .env.example .env
Start the local docker container with the Database
docker compose up -d
Then, start a development server:
pnpm dev
To run seeds for the database, use the following command:
pnpm seed
The seeding script can be found in ./src/lib/seeders/
If you want to see what is stored in your local database, you can use drizzle-studio:
npm run inspect
When you change something in the ./lib/server/drizzle/schema.ts
file, you need to generate the migrations before merging to main.
Use the following command:
pnpm add-migration
Note: don't create the migration before pulling the latest version of main