Skip to content

openshift-online/rh-trex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TRex

TRex is Red Hat's Trusted Rest EXample - a production-ready microservice template for rapid API development.

Trexxy

What is TRex?

TRex provides a complete foundation for building enterprise-grade REST APIs with built-in best practices:

  • 🚀 Rapid Development - Generate complete CRUD APIs in minutes
  • 🏗️ Plugin Architecture - Self-contained entities with auto-registration
  • 🔒 Production Ready - OIDC auth, metrics, logging, error handling
  • 📊 OpenAPI First - Auto-generated docs and client SDKs
  • 🧪 Testing Built-in - Unit and integration test frameworks
  • 📦 Container Ready - Docker and OpenShift deployment

Goal: Get from zero to production-ready API in minutes, not days.

Choose Your Path

🏗️ I Want to Create a New Microservice

Template Cloning Guide

Clone TRex into a new project with your business domain:

go run ./scripts/clone/main.go --name my-service --destination ~/projects/my-service

🔧 I Want to Add Entities to an Existing Project

Entity Development Guide

Generate complete CRUD operations for new business objects:

go run ./scripts/generate/main.go --kind Product

🎯 I Want to Explore TRex First

Local Development Guide

Run TRex locally to understand how it works:

make db/setup && make run
# Visit http://localhost:8000/api/rh-trex/v1/dinosaurs

Complete Documentation

📚 Full Documentation - Organized by user workflow:

Architecture Overview

TRex uses a plugin-based architecture where each business entity is self-contained:

  • API Layer - RESTful endpoints with authentication
  • Service Layer - Business logic with transaction management
  • DAO Layer - Database operations with GORM
  • Plugin System - Auto-registration, no manual framework edits

See Architecture Diagrams for detailed technical overview.

About

Red Hat Trusted application pipeline Restful Example

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 20