Install dependencies:
pnpm ciMigrate the database:
pnpm run migrate:localStart the server:
pnpm run devOpen schema.prisma and change schema as needed: add new tables, columns, etc (See Prisma schema reference).
Run the following command to generate a new migration and apply it instantly in local database:
pnpm makemigration --name <name_of_changes>Your colleagues will need to pull the changes and run pnpm migrate:local to apply the migration in their local database.
You have Dockerfile ready for production deployment. You can test the build with:
docker build -t dev-demo-image .
docker run -p 3500:3500 -e ADMINFORTH_SECRET=123 -v $(pwd)/db:/code/db dev-demo-imageTo set non-sensitive environment variables in production, use .env.prod file.
For sensitive variables, use direct docker environment variables or secrets from your vault.