Git Product home page Git Product logo

kanagawamarcos / churras Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 236 KB

An app to schedule brazilian barbecues. The whole app treats the event as a generic vanue like stocks on the stock market in which peers can buy shares, participate on those ventures, and, in the case of this app, which happens to only support one type of venture; Barbecue Parties.

Home Page: https://www.figma.com/file/dCOCULjQiBYMJFmEQsTGNrzS/Churras-Trinca?node-id=0%3A1

F# 51.74% CSS 5.15% HTML 43.11%

churras's Introduction

Churras da Trica

An app to schedule brazilian barbecues. The whole app treats the event as a generic vanue like stocks on the stock market in which peers can buy shares, participate on those ventures, and, in the case of this app, which happens to only support one type of venture; Barbecue Parties.

Software Specification Document

Type Fact Graph¹

graph TD      
      share --> stock; 
      stock --> share-holder;
      share-holder --*--> user;
Loading

Caption:

  • An arrow always points towards the predecessor.
  • "?" means zero or one predecessor.
  • "*" means zero or more predecessor.
  • The entity at the tail of an arrow is always of cardinality "n".
  • The successor captures the predecessors, therefore, immutable.
  • The label always refer to the predecessor.

Facts ¹

fact Stock {
      ipoDate: datetime
      description : string
      createdAt: DateTime
      notes: string*     
}

fact Share {
      value: decimal
      owner: ShareHolder
}

fact ShareHolder {
      user: User
}

fact User {
      username: string
      password: SecureString
}

Immutable records of historical events. You cannot update or destroy a Fact, only create new ones To change a system you need to introduce new facts Consists of two elements: fields and predecessors.

When dealing with facts, be aware of:

  • Each location has it's own facts
  • Locations exchange facts
  • Eventual consistency is reach between locations
  • Decisions are based on local history

Queries ¹

query marketCapitalization (s: Stock) {
      MATCH 
}

query shareHolders (s: Stock) {
      MATCH
}

query sharePrice (s: stock) {
      MATCH
}

How to run

dotnet run

References

  1. Michael L. Perry, ed. (2020) The Art of Immutable Architecture: Theory and Practice of Data Management in Distributed Systems

churras's People

Contributors

kanagawamarcos avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.