Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 505 Bytes

estruturacompliments.md

File metadata and controls

41 lines (24 loc) · 505 Bytes

1 Migration

  1. Criação da tabela compliments
$ yarn typeorm migration:create -n CreateCompliments
  • Obs: Criar as FKs
  1. Rodando a migration
$ yarn typeorm migration:run 

2 Entity

  1. Criar entidade compliments
$ yarn typeorm entity:create -n Compliment

3 Repository

  1. Criar repositório

4 Service

  1. Criar o service

  2. Implementar as regras de cadastro de elogios.

5 Controller

  1. Criar o controller

5 Route

  1. Criar a rota