Git Product home page Git Product logo

events's People

Contributors

dyeimys avatar gsantosdev avatar

Stargazers

 avatar  avatar

Watchers

 avatar

events's Issues

Deploy in cloud

Verificar cloud barata, para que possamos ter sempre a master deployada. Pode ser estratégia de:

  • Kubernet
  • Docker compose

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)

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)

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.