Skip to content

Xpronoob/ts-authentication-api

Repository files navigation

Authentication API using clean architecture

Description

Users system and JWT Authentication build on clean architecture

Stack / Framework used

Built with:

Config

Configurations, Adapters & Third party packages

Data

References, Models from databases

Domain

Enterprise Business Rules

Infrastructure

Application Business Rules

Presentation

Frameworks & Drivers

Folder structure

ts-authentication-api/
├── build/
├── src/
│   ├── config/
│   ├── data/
│   ├── domain/
│   │   │── datasources
│   │   │── dtos
│   │   │── entities
│   │   │── errors
│   │   │── repositories
│   │   └── use-cases
│   ├── infrastructure/
│   │   │── datasources
│   │   │── mappers
│   │   └── repositories
│   ├── presentation/
│   │   │── admin
│   │   │── auth
│   │   │── middlewares
│   │   └── server.ts
│   └── app.ts
├── docker-compose.yml
├── package.json
└── tsconfig.json

Token Implementations

  • Implement JWT Generate Token
  • Implement JWT Validate Token
  • Implement JWT Refresh

Others

  • Implement Testing
  • Implement Swagger
  • Implement Docker
  • Implement CI/CD

Authentication

  • Register
  • Login
  • Logout
  • Profile
  • EditProfile
  • Reset Password

Admin Users

  • Create User
  • Find User
  • Find All User
  • Update User
  • Delete User

License

Installation

Run docker

docker compose up -

Run development environment

pnpm run dev

About

User system and JWT Authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages