- Create a copy of
.env.example
and rename it.env
.
pnpm dev # Start the API locally with hot reloading
You can transpile the API to JavaScript using:
pnpm build
pnpm start # This will run the built code
Run the unit tests with:
pnpm test
If you want the tests to be automatically rerun when uncommitted test files are changed, run:
pnpm test:watch
We use Prisma for connecting to our database. Running pnpm install
also automatically generates type definitions for all the database tables used.