Files
goplt/docs/content/stories/phase4/README.md

1.9 KiB

Phase 4: Sample Feature Module (Blog)

Overview

Create a sample blog module to demonstrate the module framework. This module will implement blog posts with CRUD operations, showing how to build a feature module that integrates with the core platform.

Tasks

4.1 Module Setup

4.2 Module Configuration

4.3 Domain Layer

4.4 Repository Layer

4.5 Service Layer

4.6 API Layer

Deliverables Checklist

  • Blog module directory structure created
  • Module manifest defines permissions and routes
  • Blog post domain model defined
  • Ent schema for blog posts created
  • Repository implements CRUD operations
  • Service layer implements business logic
  • API endpoints for blog posts working
  • Module integrated with core platform

Acceptance Criteria

  • Blog module can be registered with core platform
  • Permissions are generated for blog module
  • CRUD operations work for blog posts
  • API endpoints require proper authentication
  • Module migrations run on startup
  • Blog posts are associated with users