Skip to content

ddiasfront/nestjs-auth-api

Repository files navigation

Simple authentication API

This API feature a simple authentication proceess using modern technologies available in 2023.

FlowChart

View full diagram

The API contain the following functionalities:

  • Create user
  • Retrieve user by id
  • Retrieve user by name and email
  • Retrieve all users
  • Delete user
  • Sign in user

Validations

  • It validates if the user exists before insert on the database
  • It validates also if an email is valid/exists via a third party api
  • It uses bcrypt for encryption and hashing password

Built With

Typescript Prisma MYSQL GraphQL NestJS JWT Jest ApolloGraphQL NodejS

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

(back to top)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published