Compare commits

..

2 Commits

Author SHA1 Message Date
Shiro-Nek0
b6cc945adb Merge branch 'main' of https://gitea.sekidesu.xyz/SekiDesu01/SekiPOS 2026-02-26 02:00:58 -03:00
Shiro-Nek0
a22d808b7b modified: README.md 2026-02-26 01:59:16 -03:00

View File

@@ -15,15 +15,15 @@ Build and run the central inventory server:
```bash ```bash
# Build the image # Build the image
docker build -t sekipos . docker build -t sekipos:latest .
# Run the container (Map port 5000 and persist the database/cache) # Run the container (Map port 5000 and persist the database/cache)
docker run -d \ docker run -d \
-p 5000:5000 \ -p 5000:5000 \
-v $(pwd)/pos_database.db:/app/pos_database.db \ -v $(pwd)/sekipos/db:/app/db \
-v $(pwd)/static/cache:/app/static/cache \ -v $(pwd)/sekipos/static/cache:/app/static/cache \
--name sekipos-server \ --name sekipos-server \
sekipos sekipos:latest
``` ```
Or use this stack: Or use this stack:
@@ -37,7 +37,7 @@ services:
- YOUR_PATH/sekipos/db:/app/db - YOUR_PATH/sekipos/db:/app/db
- YOUR_PATH/sekipos/static/cache:/app/static/cache - YOUR_PATH/sekipos/static/cache:/app/static/cache
container_name: sekipos-server container_name: sekipos-server
image: sekipos image: sekipos:latest
``` ```
## 🔌 Hardware Scanner Bridge (`ScannerGO`) ## 🔌 Hardware Scanner Bridge (`ScannerGO`)
@@ -57,6 +57,11 @@ chmod +x ScannerGO-linux
*Note: Ensure the `-url` points to your Docker container's IP address.* *Note: Ensure the `-url` points to your Docker container's IP address.*
All this program does its send the COM data from the scanner gun to:
```
https://scanner.sekidesu.xyz/scan?content=BAR-CODE
```
## 📦 Local Installation (Development) ## 📦 Local Installation (Development)
If you're too afraid of Docker: If you're too afraid of Docker:
@@ -72,4 +77,9 @@ python app.py
## 📁 Structure ## 📁 Structure
- `app.py`: The inventory/web server. - `app.py`: The inventory/web server.
- `static/cache/`: Local repository for product images. - `static/cache/`: Local repository for product images.
- `pos_database.db`: SQLite storage. - `db/pos_database.db`: SQLite storage.
## 📋 TODOs?
- Fruits and vegetables list
- Better admin registration(?)
- Cache user edited pictures