GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - openthc/cre

BranchesTags
Open more actions menu

Latest commit

 

History

216 Commits
216 Commits

Folders and files

NameName
Last commit message
Last commit date
doc
doc
 
 
docker
docker
 
 
etc
etc
 
 
lib
lib
 
 
sbin
sbin
 
 
test
test
 
 
view
view
 
 
webroot
webroot
 
 
.ackrc
.ackrc
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
INSTALL.md
INSTALL.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
ULID.md
ULID.md
 
 
boot.php
boot.php
 
 
composer.json
composer.json
 
 
composer.lock
composer.lock
 
 
make.sh
make.sh
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

Cannabis/Compliance/Crop Reporting Engine - CRE

This is a simple software solution for collecting and reporting on crops of cannabis or other tightly tracked, regulated products. A simple setup of an event-object-audit-log database, along with the API end-point to collect the necessary details.

The platform is extendable by the regulatory agency/operating company through middleware.

More information is available at https://openthc.com/cre

Global Storage

  • Company
  • License
  • Contact
  • Variety

License Specific Data

  • Section (aka: Area, Room)
  • Inventory Lot
  • Crop
  • B2B Transaction (aka: Manifest, Invoice, Transfer)
  • B2C Transaction (aka: Retail, Dispense)

Actions / Events

  • Crop/Create - Create Crops from Inventory Lot (of type: Plant, Clone or Seed)
  • Crop/Collect/Raw - Collect raw materials from the crop
  • Crop/Collect/Net - Account for net materials Dry/Cured/Trimmed state.
  • Crop/Collect/Lot - Creates Production Inventory Lot
  • Inventory/Create
  • Inventory/Convert - One or more Source Lots into one Output Lot
  • Inventory/Combine
  • Inventory/Sample - Remove a Small Portion for Unique Sample (Employee, QA, Vendor, etc)
  • B2B/Create - File the B2B Transaction
  • B2B/Commit - Commit/Send the B2B Transaction
  • B2B/Accept - Accept/Receive the B2B Transaction
  • B2B/Reject - Reject the B2B Transaction

Reporting

  • Realtime Object States
  • Realtime Activity Reports
  • Verbose Logging with complete Object delta
  • Easily extendable via Middleware components

APIs

  • Simple API Interface
  • Direct Write/Update of Objects (Crop, Inventory, B2B, B2C)
  • Indirect Update via Actions

Identifiers

  • ULID/UUID - https://github.com/ulid/spec
  • No reliance on central authority (BioTrack, METRC, LeafData)
  • No reliance on expensive RFID (METRC)
  • No "Smart" numbers (BioTrack, LeafData)
  • Support for billions of billions of tracked items
    • Usable until 10889 AD
    • 1.21 Giga-Giga (2^80) unique items per millisecond!

Customizing

If you want to add new custom Services, Middleware or other code use the ./Custom directory. All of your custom libraries would be in ./Custom/Service or ./Custom/Middleware. Then you can use them in the ./webroot/main.php script.

Authenitication

sequenceDiagram
    App->>+CRE: Auth Service, Contact, Company, License
    CRE->>+SSO: Auth Service, Contact, Company
    SSO->>-CRE: Service, Contact, Company
    CRE-->DIR: License Verify
    CRE-->>CRE: License Verify
    CRE->>-App: Session
    App->>CRE: Req
    CRE->>App: Res
    App-->>CRE: ReqN
    CRE-->>App: ResN
Loading

Docker

Build it (regular or via compose)

docker build \
  --file docker/Dockerfile \
  --tag openthc/cre:latest \
  ./
# OR
docker compose \
  --file docker/compose.yaml \
  build
# OR
cd docker && docker compose build

Run it and test?

docker run --rm -it openthc/cre:latest
# OR
docker compose --file docker/compose.yaml up
# OR
cd docker && docker compose up

About

No description, website, or topics provided.

Resources

Readme
MIT license
Activity
Custom properties

Stars

1 star

Watchers

2 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.