pharmacy-erp 1.0.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -43,7 +43,7 @@ You can run these commands via `npx pharmacy-erp <command>` or inside your proje
43
43
  | `start` | Starts the frontend and backend development servers simultaneously. |
44
44
  | `setup` | Installs all required Node.js and Python dependencies. |
45
45
  | `seed` | Seeds the database with demo products, users, and transactions. |
46
- | `docker` | Starts the application in production mode using Docker Compose. |
46
+ | `docker` | Starts the application in production mode using the official all-in-one Docker image. |
47
47
  | `help` | Shows the help menu with all available commands. |
48
48
 
49
49
  ## 📦 Prerequisites
package/bin/cli.js CHANGED
@@ -235,7 +235,7 @@ function cmdDocker() {
235
235
  }
236
236
 
237
237
  try {
238
- const child = spawn("docker", ["compose", "up", "-d"], {
238
+ const child = spawn("docker", ["run", "-it", "-p", "80:80", "--name", "pharmacy-erp", "omersx/pharmacy-erp:latest"], {
239
239
  cwd: process.cwd(),
240
240
  stdio: "inherit",
241
241
  shell: true,
@@ -1,58 +1,20 @@
1
1
  # ============================================================
2
2
  # Pharmacy ERP — Production Docker Compose
3
- # Uses pre-built images from Docker Hub
3
+ # Uses the official all-in-one image from Docker Hub
4
4
  # ============================================================
5
5
  # Usage:
6
6
  # docker compose up -d
7
- #
8
- # Prerequisites:
9
- # Copy .env.example to .env and update values
10
7
  # ============================================================
11
8
 
12
9
  services:
13
- backend:
14
- image: omersx/pharmacy-erp-backend:latest
15
- container_name: pharmacy-erp-backend
16
- restart: unless-stopped
17
- ports:
18
- - "8000:8000"
19
- env_file:
20
- - .env
21
- environment:
22
- - APP_ENV=production
23
- - DEBUG=false
24
- volumes:
25
- - backend_data:/app/data
26
- healthcheck:
27
- test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/docs')"]
28
- interval: 30s
29
- timeout: 10s
30
- retries: 3
31
- start_period: 10s
32
-
33
- frontend:
34
- image: omersx/pharmacy-erp-frontend:latest
35
- container_name: pharmacy-erp-frontend
36
- restart: unless-stopped
37
- ports:
38
- - "3000:3000"
39
- environment:
40
- - NEXT_PUBLIC_API_URL=http://localhost:8000/api/v1
41
- depends_on:
42
- backend:
43
- condition: service_healthy
44
-
45
- nginx:
46
- image: nginx:alpine
47
- container_name: pharmacy-erp-nginx
10
+ pharmacy-erp:
11
+ image: omersx/pharmacy-erp:latest
12
+ container_name: pharmacy-erp
48
13
  restart: unless-stopped
49
14
  ports:
50
15
  - "80:80"
51
16
  volumes:
52
- - ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
53
- depends_on:
54
- - backend
55
- - frontend
17
+ - backend_data:/app/backend/data
56
18
 
57
19
  volumes:
58
20
  backend_data:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pharmacy-erp",
3
- "version": "1.0.2",
3
+ "version": "1.2.0",
4
4
  "description": "Pharmacy ERP & POS System — Enterprise-grade pharmacy management with full Arabic (RTL) and English support",
5
5
  "bin": {
6
6
  "pharmacy-erp": "./bin/cli.js"