Trello-like REST API written in TypeScript using NestJS, PostgreSQL, Prisma
Authentication with JWT access tokens
- Install dependencies:
npm i- Rename
.env.exampleto.envand fill fields:
mv .env.example .env-
.envfields: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