Code Monkey home page Code Monkey logo

totemo's Introduction

totemo

Barcode scanner android price list app

Barcode scanner pistol can be connected through a usb adapter to the device. After scanning the product barcode a new page opens up with all the details of it.

Backoffice for adding and managing products is self-hosted by the app at port 8080 by default. Pressing the top section of the screen for 5 times within 2 seconds starts the webserver and shows a modal with a qrcode that can be scanned to open the backoffice url.

The server starts and the qrcode is generated only if the device is connected to a wi-fi network.

Backoffice is made by a REST API and a static website folder made with React. The api manages a SQlite db stored into external storage.

React backoffice frontend is zipped at gradle compilation and put into the assets folder of the android apk. At application start the version file in the zipped React app is compared to the one stored into external storage of the android device. If version is lower, all the react folder is cleared and the assets zip is extracted into the external storage.

  • Thing used in this project Kotlin, Android things, Room persistence library (SQlite db), Ktor (webserver), React (backoffice frontend), REST API architecture (backoffice backend), WorkManager (checking, updating and extracting assets React folder), <-- Always use trailing commas

  • Thing used for fun LiveData, ViewModel, Glide, Navigation Component, QRGen, RecycleView,

totemo's People

Contributors

pierluigizagaria avatar

Stargazers

 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.