This pre-initialized project has everything you need to work with TypeScript, Express and Rest.
- Clone .env.template to .env and configure the environment variables.
- Run
npm install
to install the dependencies. - Run
npm run dev
to run the project in development mode.
-
Create & Apply all migrations
npx prisma migrate dev
-
Apply all migrations and create a new migration
npx prisma migrate dev --create-only
-
Apply all migrations and create a new migration with custom name
npx prisma migrate dev --create-only --name "test"
-
Apply all pending migrations, and creates the database if it does not exist. Primarily used in non-development environments.
npx prisma migrate deploy
-
More info at Prisma Migrate DOCS