Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nestjs ddd #2

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open

Nestjs ddd #2

wants to merge 27 commits into from

Conversation

fsodano
Copy link

@fsodano fsodano commented Mar 13, 2021

No description provided.

El módulo de reservation comple con la arquitectura DDD basada en
Hexagonal architecture
Todos los endpoints son restringidos por default, excepto el de login.
Se implementaron 2 estrategias, la local y la jwt.
La estrategia local se usa para autenticar un usuario contra la base de
datos, y eso emite un JWT token.
La estrategia JWT valida que el token sea válido para los subsiguientes
requests a cualquier endpoint de la API.
Quita dependencias de nest en el controlador
Como todos los repositorios tienen los mismos métodos base, es mejor definir una interfaz de repositorio base que luego se pueda heredar y hacer más específica (ejemplo en IUserRepository)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant