Git Product home page Git Product logo

stockboy's Introduction

Stockboy

Home inventory management system for your pantry & anything with a barcode

I often forget what I have in my home pantry and end up buying more diced tomatoes when I already have 17 cans at home.

This is a simple system that allows me to check what I have in stock from anywhere

Quick Start

First Install

  • git
  • Docker
  • docker-compose

Then

git clone [email protected]:ncentola/stockboy.git
cd stockboy

docker-compose up --build

Architecture

Architecture

The idea is to have this running on a raspberry pi or similar cheap compute device. Barcode scanning will be done on the edge (rpi) and produce messages for the backend to consume. Eventually the backend consumers & services will most likely be deployed as Fargate services via AWS ECS

Scanner Service

Runs on RPi with a USB barcode scanner. The service translates data from the USB barcode scanner into UPC codes and passes to the message queue. RPi will have an in/out toggle for adding and removing from stock

Queue

Basic RabbitMQ where a single "scan" goes into a fanout exchange which can then be consumed by the UPC Lookup & Transaction services

UPC Lookup

Checks if we have the UPC in our system, if not reaches out to a UPC API, retrieves product info, and puts it into the database

Transaction Service

Consumes messages produced by the scanner and passes them to the API

API

Simple routes to interact with the DB

Frontend

Currently a simple Plotly Dash data table which some search & sort functionality

Database

Simple Postgres db, schemas managed by Flyway

TODO

  • API Auth
  • Multi-tenancy?

stockboy's People

Contributors

ncentola avatar

Stargazers

 avatar 塩漬けウミウシ avatar

Watchers

James Cloos 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.