Prabogo Logo

Prabogo Go Framework

A modern Go framework designed to simplify project development with interactive commands and built-in AI assistance.

Key Features

Hexagonal Architecture

Implement clean, maintainable code with a hexagonal architecture that separates business logic from external dependencies.

Plug and Play Components

Easily swap infrastructure components like databases, message brokers, and HTTP servers with minimal code changes.

Interactive Commands

Utilize the interactive command interface to scaffold, generate, and manage project components efficiently.

Decoupled Components

Build systems where business logic is independent of external concerns, making testing and maintenance easier.

Built-in Documentation

Comprehensive documentation and design guidelines help teams maintain consistent architecture patterns.

Code Generation

Generate boilerplate code for models, migrations, adapters and more with simple make commands.

Installation

1 Install Prabogo Installer

Install the Prabogo installer tool using go install:

# Install the latest version
go install github.com/prabogo/prabogo-install@latest

2 Create a New Prabogo Project

Use the installer to create a new project:

prabogo-install my-project-name

3 Set Up Environment

Navigate to your project directory and set up the environment:

cd my-project-name
cp .env.example .env
go mod tidy

4 Start External Services

Start the required services using Docker Compose:

docker-compose up -d

5 Run Your Application

Run your application using the interactive command runner:

make run

Or directly run a specific mode:

# Run HTTP server
make http

# Run a specific command
make command CMD=your_command VAL=your_value

# Run message consumer
make message SUB=your_subscriber
Read Full Documentation