/workshop-backend

A backend containing backend calls for workshops

Primary LanguageTypeScript

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Login

Endpoint: POST /auth/login Body:

{
  "username": "admin",
  "password": "admin"
}

Profile

Add bearer token to head: Authorization: Bearer TOKEN.

Endpoint: GET /auth/profile