:pizza:Trello api with NestJS
Clone the repository
git clone https://github.com/borakilicoglu/nest-trello.git
Switch to the repo folder
cd nest-trello
Install dependencies
npm install
or yarn
if using YarnCopy sample .env file and set JWT secret key
npm run init:env
or yarn init:env
will copy .env.example
to .env
The example codebase uses Typeorm with a PostgreSQL database.
Create a new PostgreSQL database with the name nest-trello
(or the name you specified in the .env)
On application start, tables for all entities will be created.
npm start
/ yarn start
- Start applicationnpm run start:dev
/ yarn start:dev
- Start application in watch modenpm run test
/ yarn test
- run Jest test runnernpm run start:prod
/ yarn start:prod
- Build application in production modenpm start
/ yarn start
http://localhost:3000/api/boards
in your favourite browserThis applications uses JSON Web Token (JWT) to handle authentication. The token is passed with each request using the Authorization
header with Token
scheme. The JWT authentication middleware handles the validation and authentication of the token. Please check the following sources to learn more about JWT.