Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabrielleraujo/customer-registration
Rest API
https://github.com/gabrielleraujo/customer-registration
ccharp clean-architecture csharp deadletter-queue design-patterns docker docker-compose dotnet8 entity-framework-core mediatr microservice middleware polly rabbitmq rabbitmq-producer rest-api rich-domain-model sql-server xunit-test
Last synced: 29 days ago
JSON representation
Rest API
- Host: GitHub
- URL: https://github.com/gabrielleraujo/customer-registration
- Owner: gabrielleraujo
- Created: 2023-09-13T15:32:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-25T04:01:54.000Z (4 months ago)
- Last Synced: 2024-11-11T17:14:20.539Z (3 months ago)
- Topics: ccharp, clean-architecture, csharp, deadletter-queue, design-patterns, docker, docker-compose, dotnet8, entity-framework-core, mediatr, microservice, middleware, polly, rabbitmq, rabbitmq-producer, rest-api, rich-domain-model, sql-server, xunit-test
- Language: C#
- Homepage:
- Size: 676 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Customer registration
### New Migration:
- para criar uma migração do banco de dados execute o comando abaixono terminal no caminho "src/CustomerRegistration.Infrastructure".
1. dotnet ef --startup-project ../CustomerRegistration.API/ migrations add initial -c CustomerRegistrationContext --msbuildprojectextensionspath local/obj -v
2. dotnet ef --startup-project ../CustomerRegistration.API/ database update### Docker Compose:
A execuçao do script depende do container do rabbitmq ter sido inicializado para poder subir a api, o rabbitmq está no docker-compose do ms de customer_registration, o quel é o primeiro ms que deve ser inicializado.### Executar scripts no VS Code:
Terminal > Run Task... > docker-run### Debub no VS Code:
Run and Debug > .NET Core Docker Attach### Abrir banco de dados no Azure Data Studio:
utilizar a connction string mudando o o server para localhost e especificar a porta configurada no docker-compose.
Ex: Server=localhost,1433### Swagger:
- https://localhost:7014/swagger/index.html#### Some usage examples: