events's People
events's Issues
Apply standard on package names
Exclude mappers from coverage exclusion
fix request response
Create presentation of create event
Depended on #10
Deploy in cloud
Verificar cloud barata, para que possamos ter sempre a master deployada. Pode ser estratégia de:
- Kubernet
- Docker compose
Configure open api documentation
Unpublish event
Create presentation of create location
sequenceDiagram
User->>+Api: [post] /location (Request)
Api-->>Api: Mapping(Request/Input)
Api->>+UseCase: call execute (Input)
UseCase->>+LocationRepository: Find Location
break when location already exists
UseCase-->LocationRepository: throw exception
end
UseCase-->>UseCase: Mapping(Input/Entity)
UseCase->>+LocationRepository: Persist Location
LocationRepository-->>-UseCase: LocationEntity
UseCase-->>UseCase: Mapping(Entity/Output)
UseCase-->>-Api: location (Output)
Api-->>Api: Mapping(Output/Response)
Api-->>-User: location(Response)
Fix CI Docker image
Create event
Create a event use case.
implementation of the create event use case.
Event can be created with or without location. By default it should be created with unpublished status.
%%{init:
{
"theme": "default",
"themeVariables": {
"nodeBorder" : "#004990",
"mainBkg" : "#c9d7e4",
"actorBkg" : "#01A6F0",
"signalColor" : "#F34F1C",
"textColor" : "#747474",
"loopTextColor" : "#C7C7C7",
"labelTextColor" : "#C7C7C7",
"labelBoxBorderColor" : "#7FBC00",
"labelBoxBkgColor" : "#7FBC00",
"noteBkgColor" : "#FFBA01",
"noteBorderColor": "#FFBA01",
"fontFamily": "Sans",
"fontSize": "13px"
}
}
}%%
flowchart LR
subgraph Roles
Actor -- send --> id1{isLocationId}
id1{isLocationId} -- sim--> FindLocation
FindLocation --> id2{retrieved}
end
subgraph End
id2{retrieved} -- não--> Thowable
id2{retrieved} -- sim--> Persist
id1{isLocationId} -- nao--> Persist
Persist --> END
Thowable --> END
end
%%{init:
{
"theme": "default",
"themeVariables": {
"nodeBorder" : "#004990",
"mainBkg" : "#c9d7e4",
"actorBkg" : "#01A6F0",
"signalColor" : "#F34F1C",
"textColor" : "#747474",
"loopTextColor" : "#C7C7C7",
"labelTextColor" : "#C7C7C7",
"labelBoxBorderColor" : "#7FBC00",
"labelBoxBkgColor" : "#7FBC00",
"noteBkgColor" : "#FFBA01",
"noteBorderColor": "#FFBA01",
"fontFamily": "Sans",
"fontSize": "13px"
}
}
}%%
sequenceDiagram
User->>+Api: [post] /event (Request)
Api-->>Api: Mapping(Request/Input)
Api->>+UseCase: call execute (Input)
UseCase->>+LocationRepository: Find Location
LocationRepository-->>-UseCase: LocationEntity
UseCase-->>UseCase: Mapping(Input/Entity)
UseCase->>+EventRepository: Persist Event
EventRepository-->>-UseCase: EventEntity
UseCase-->>UseCase: Mapping(Entity/Output)
UseCase-->>-Api: event (Output)
Api-->>Api: Mapping(Output/Response)
Api-->>-User: event(Response)
Refactor application business, add in user case
exclude pojos covarage
Refactor packages organization
Create CODEOWNERS
Verify if repository type accept CODEOWNERS.
Documentation: https://docs.github.com/pt/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
Find location by Id
Create location
flowchart LR
Actor -- send --> id1{locationExists}
id1{locationExists} -- no--> Persist
id1{locationExists} -- yes--> Throwable
%%{init:
{
"theme": "default",
"themeVariables": {
"nodeBorder" : "#004990",
"mainBkg" : "#c9d7e4",
"actorBkg" : "#01A6F0",
"signalColor" : "#F34F1C",
"textColor" : "#747474",
"loopTextColor" : "#C7C7C7",
"labelTextColor" : "#C7C7C7",
"labelBoxBorderColor" : "#7FBC00",
"labelBoxBkgColor" : "#7FBC00",
"noteBkgColor" : "#FFBA01",
"noteBorderColor": "#FFBA01",
"fontFamily": "Sans",
"fontSize": "13px"
}
}
}%%
sequenceDiagram
UseCase->>+LocationRepository: Find Location
break when location already exists
UseCase-->LocationRepository: throw exception
end
UseCase-->>UseCase: Mapping(Input/Entity)
UseCase->>+LocationRepository: Persist Location
LocationRepository-->>-UseCase: LocationEntity
UseCase-->>UseCase: Mapping(Entity/Output)
Publish event
Create Docker Image and pull
Find all location
Create tags in deploy and generate docker image with tag
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.