6 Commits

Author SHA1 Message Date
28731e1d60 update docker-compose.yml URL to use version tag v1.1.0
All checks were successful
🏗️✨ Build Workflow / 🖥️ 🔨 Build (push) Successful in 15m53s
2025-07-30 11:35:23 -04:00
875c3304d1 update docker-compose.yml URL to use version tag v1.1.0
Some checks failed
🏗️✨ Build Workflow / 🖥️ 🔨 Build (push) Has been cancelled
2025-07-30 11:34:06 -04:00
36fcd374d5 update Docker image reference and enhance README with application details 2025-07-29 16:29:30 -04:00
d3059d3481 update Docker Hub credentials and image version in configuration files
All checks were successful
🏗️✨ Build Workflow / 🖥️ 🔨 Build (push) Successful in 17m16s
2025-07-29 16:08:51 -04:00
c0fd8d6796 version
Some checks failed
🏗️✨ Build Workflow / 🖥️ 🔨 Build (push) Has been cancelled
2025-07-29 13:45:04 -04:00
a7fef89dda cors
All checks were successful
🏗️✨ Build Workflow / 🖥️ 🔨 Build (push) Successful in 20m24s
2025-07-29 13:11:12 -04:00
6 changed files with 35 additions and 13 deletions

View File

@@ -25,9 +25,8 @@ jobs:
- name: 🔑 🔐 Login to Docker Hub - name: 🔑 🔐 Login to Docker Hub
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: scr.siteworxpro.com username: ${{ secrets.DOCKER_USERNAME }}
username: ${{ secrets.SITEWORX_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }}
password: ${{ secrets.SITEWORX_PASSWORD }}
- name: 🏗️ 🔧 Set up Docker Buildx - name: 🏗️ 🔧 Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
@@ -41,4 +40,4 @@ jobs:
platforms: linux/arm64,linux/amd64 platforms: linux/arm64,linux/amd64
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
tags: scr.siteworxpro.com/gun-manager:${{ gitea.ref_name }} tags: siteworxpro/gun-manager:${{ gitea.ref_name }}

View File

@@ -1,6 +1,6 @@
FROM node:22.14.0 AS frontend FROM node:22.14.0 AS frontend
ENV VITE_API="https://localhost" ENV VITE_API=""
WORKDIR /frontend WORKDIR /frontend
ADD frontend/ ./ ADD frontend/ ./

View File

@@ -1,6 +1,27 @@
# Gun Manager
Gun Manager is a web application for managing a gun inventory, built with Go and React. It allows users to add, edit,
and delete gun records, as well as view them in a user-friendly interface.
## Features
- Add, edit, and delete gun records
- View gun records in a table
- Search and filter gun records
- Responsive design
- Photo upload for each gun record
## Running the Application
To run the Gun Manager application, you need to have Docker installed on your machine. The application uses a SQLite database to store gun records.
## Prerequisites
- Docker installed on your machine
- A directory named `data` in the current working directory to store the SQLite database file
```shell ```shell
docker run --rm \ mkdir -p data && \
-v $(pwd)/data:/data \ curl -sSL https://gitea.siteworxpro.com/siteworxpro/gun-manager/raw/tag/v1.1.0/docker-compose.yml | docker compose -f - up -d
-p 8000:8000 \
scr.siteworxpro.com/gun-manager:v0.0.3 -database /data/gun_inventory.sqlite
``` ```
## Accessing the Application
Once the application is running, you can access it in your web browser at `https://localhost`.

Submodule backend updated: 3c6750ab13...42bd95d804

View File

@@ -19,7 +19,7 @@ services:
- "--entrypoints.web.http.redirections.entrypoint.permanent=true" - "--entrypoints.web.http.redirections.entrypoint.permanent=true"
api: api:
image: scr.siteworxpro.com/gun-manager:v0.0.3 image: siteworxpro/gun-manager:v1.1.0
container_name: gun-manager container_name: gun-manager
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
@@ -32,3 +32,5 @@ services:
command: command:
- "-database" - "-database"
- "./data/gun_inventory.sqlite" - "./data/gun_inventory.sqlite"
environment:
CORS_ORIGINS: "https://localhost"