Skip to content

idmcalculus/leovegas-api

Repository files navigation

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.

API Overview

The API includes the following endpoints:

  • POST /users: Create a new user.
  • GET /users: Retrieve all users (Admin only).
  • GET /users/:id: Retrieve a single user by ID.
  • PUT /users/:id: Update user information.
  • DELETE /users/:id: Delete a user (Admin only).

Each endpoint is secured and requires JWT-based authentication. The API supports role-based access control with two roles: USER and ADMIN.

Swagger Documentation

An interactive API documentation generated by Swagger is available. You can explore and test the API endpoints at:

Swagger API Documentation

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

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors