Start by cloning or downloading the source code and installing dependencies.
Then copy the .env.example
file to .env
:
cp .env.example .env
Run database migrations and seeder:
npm run db:reset
And finally start the app:
npm run dev
To make it easier to run some Prisma CLI commands, the next npm scripts are available:
Resets the database. Applies migrations and runs seeders.
Generates migration files (*.sql
) based on changes to schema.prisma
.
Runs the database seeder prisma/seed.ts
.