Giter VIP home page Giter VIP logo

kiba's Introduction

alt text

kiba

kiosk and bank system for hassle-free management of accounts, groups, products and transactions

Features

  • Create accounts with balances and organize them into groups
  • Create products (along with product images) and organize them into categories
  • Select Products to add them to the Shopping Cart or use a 2D-Barcode Scanning device
  • Persist all transactions to disk in a sequence of traceable transactions

Technical details

Electron, React and Redux

Electron is used to wrap this application into a browser container for native cross-platform use. React is used along with the UI component library Ant Design and Redux is used for state-management - specifically redux-toolkit.

Event Sourcing

All transactions (add account, add product, checkout products, ...) are persisted to a JSONL file. When the application is opened, all historic transactions are replayed to generate the current state (e.g. account balances). The idea is to keep a complete explainable history that can be inspected in a separate view. Consistency between transactional data and current state are ensured. Historical events can be used to derive statistics.

Contributing

Once checked out, the project dependencies can be installed with

npm i

and the local development server is started with

npm start

Please refer to the electron-forge docs for instructions on how to create a distributable build.

TODO

  • Create a products page where categories and products can be created
  • Allow editing of groups, accounts, categories and products
  • Create a shopping cart that is visible
  • Allow use of a USB barcode scanning device by catching EAN keyboard inputs in the product view
  • i18n
  • In case the event sourcing gets slow with many transactions, maybe implement snapshotting so we don't have to replay all events on every application start

kiba's People

Contributors

dependabot[bot] avatar leweohlsen avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  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.