Git Product home page Git Product logo

grocery-manager-public's Introduction

SwiftUI with ChromisPOS and WooCommerce

A mini inventory management app has been designed with a single page for updating essential product information.

image

System overview

The app comprises 3 main functions: updating products in the ChromisPOS database using the PHP service API, updating product selling prices and stock quantities in the WordPress database via the WooCommerce Rest API, and printing out product shelf labels using the Dymo printer SDK. image

Functions

  • Retrieve, insert, and update product information, such as product ID, code, name, image, category, taxes, purchase price, selling price, stock quantity, and expiration, from the ChromisPOS database.
  • Retrieve and update product information, such as selling price and quantity, from the WordPress database.
  • Scan product barcode
  • Searching
  • Print product shelf label

Setup

  1. Set up your Apache and PHP environment, and then move the 'service' folder to the DocumentRoot path
  2. Install Chromis POS or you can edit the SQL query to match the database you require.
  3. Create a table name product_stock in chromispos database
CREATE TABLE `products_stock` (
  `ID` varchar(255) NOT NULL,
  `STOCK` double DEFAULT '0',
  `EXPIRATION` date DEFAULT '0000-00-00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  1. Install the DYMO printer driver. I used the DYMO LabelWriter 450 Label Printer. If you have a different model, you can edit the label template file for your printer at service/dymo/template.label.
  2. Create WooCommerce Rest API keys:
    • WooCommerce -> Setting -> Advance -> REST API -> Add Key
    • Set permission to Read/Write then
    • Click Generate API Key
    • Save Consumer key and Consumer secret for App setting

Tweak this project

It would be nice if the project could remove the background from product images using image processing.

Find a bug?

If you found an issue or would like to submit an improvement to this project, please submit an issue using the issue tab above.

grocery-manager-public's People

Contributors

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