1
0
Fork 0
No description
Find a file
2025-07-22 16:15:54 +01:00
.github Add FUNDING.yml 2025-07-22 16:15:54 +01:00
app Merge branch 'main' of https://git.chobble.com/chobble/patlog 2025-07-05 21:13:07 +01:00
bin Upgrade to Rails 8, switch curl job to an ActiveJob 2025-05-01 14:18:58 +01:00
config Nicer inspection images, all/overdue links 2025-05-02 00:30:16 +01:00
db Update last_active_at times when users use the system 2025-05-06 12:06:41 +01:00
lib Add ntfy notifications on new users/inspections 2025-05-03 22:44:17 +01:00
log first commit 2025-04-27 19:26:01 +01:00
public first commit 2025-04-27 19:26:01 +01:00
spec Remove stub specs 2025-05-15 22:27:04 +00:00
storage first commit 2025-04-27 19:26:01 +01:00
test Add image uploads (broken) 2025-04-27 20:30:07 +01:00
tmp first commit 2025-04-27 19:26:01 +01:00
vendor first commit 2025-04-27 19:26:01 +01:00
.dockerignore first commit 2025-04-27 19:26:01 +01:00
.gitattributes first commit 2025-04-27 19:26:01 +01:00
.gitignore Update flake to Rails 8 2025-05-01 14:48:20 +01:00
.rspec first commit 2025-04-27 19:26:01 +01:00
.rubocop.yml first commit 2025-04-27 19:26:01 +01:00
.ruby-version first commit 2025-04-27 19:26:01 +01:00
build-and-push.sh Add credentials 2025-04-29 04:43:58 +01:00
CLAUDE.md Add tests for user/session helpers 2025-05-02 00:03:25 +01:00
config.ru first commit 2025-04-27 19:26:01 +01:00
Dockerfile Upgrade to Rails 8, switch curl job to an ActiveJob 2025-05-01 14:18:58 +01:00
flake.lock Add image uploads (broken) 2025-04-27 20:30:07 +01:00
flake.nix Fix vips flake 2025-05-01 14:49:55 +01:00
Gemfile Upgrade to Rails 8, switch curl job to an ActiveJob 2025-05-01 14:18:58 +01:00
Gemfile.lock Upgrade to Rails 8, switch curl job to an ActiveJob 2025-05-01 14:18:58 +01:00
LICENSE Add AGPLv3 license 2025-05-01 03:20:28 +01:00
Rakefile first commit 2025-04-27 19:26:01 +01:00
README.md Update H1 2025-05-01 02:23:25 +00:00

patlog - A PAT Inspection Logger

A Ruby on Rails application for managing Portable Appliance Testing (PAT) inspections and generating certificates with QR codes for verification.

patlog.co.uk

Requirements

  • Ruby 3.2+
  • Rails 7.2+
  • SQLite 3

Setup

Docker Installation

The easiest way to install PAT Logger is using Docker:

docker pull dockerstefn/patlog
docker run -p 3000:3000 dockerstefn/patlog

Visit http://localhost:3000 in your browser.

Manual Installation

  1. Clone the repository

  2. Install dependencies:

    bundle install
    
  3. Create the database:

    rails db:create db:migrate
    
  4. Configure environment variables:

    cp .env.example .env
    

    Then edit .env and set your application's base URL (e.g., https://yourdomain.com or http://localhost:3000 for development).

    Available environment variables:

    • BASE_URL: The base URL for your application (required)
    • LIMIT_INSPECTIONS: Default number of inspections allowed per user (default: 10, set to -1 for unlimited)
  5. Start the Rails server:

    rails server
    

Features

  • PAT inspection records management
  • PDF certificate generation
  • QR code generation for certificate verification
  • User authentication and authorization
  • Search functionality for inspections
  • Image attachment for equipment photos

Testing

Run the test suite with:

rspec