Skip to content

Latest commit

 

History

History

@blurple-canvas-web/backend

Getting started

Prerequisites

  1. Create a copy of .env.example and rename it .env.

Running

pnpm dev # Start the API locally with hot reloading

Building

You can transpile the API to JavaScript using:

pnpm build

pnpm start # This will run the built code

🧪 Testing

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

Generating types

We use Prisma for connecting to our database. Running pnpm install also automatically generates type definitions for all the database tables used.