A Ruby on Rails application for managing Portable Appliance Testing (PAT) inspections and generating certificates with QR codes for verification.
- Ruby 3.2+
- Rails 7.2+
- SQLite 3
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.
-
Clone the repository
-
Install dependencies:
bundle install
-
Create the database:
rails db:create db:migrate
-
Configure environment variables:
cp .env.example .env
Then edit
.env
and set your application's base URL (e.g.,https://yourdomain.com
orhttp://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)
-
Start the Rails server:
rails server
- 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
Run the test suite with:
rspec