Trello-like REST API written in TypeScript using NestJS, PostgreSQL, Prisma
Authentication with JWT access tokens
- Install dependencies:
npm i
- Rename
.env.example
to.env
and fill fields:
mv .env.example .env
-
.env
fields:SECRET_KEY: secret for JWT tokens signature ACCESS_TOKEN_EXPIRE: access tokens expiry with time literal (e.g. 300s or 5m) DATABASE_URL: database URL
- Run DB migrations:
npm run migrate
-
Drop DB:
npm run reset