Skip to content

Conversation

riipandi
Copy link
Member

Description 📋

Caution

This pull request includes some huge updates, expect for breaking changes.

Features:

  • Added a new Go modular monolith app, templates are still in progress.
  • Configurable and ejectable modules.
  • Embedded SPA frontend ready.
  • Integrated Goose migration tools with the project.
  • Viper configuration with typesafe values and validation.
  • Generate .env.example command to generate an example app configuration.
  • Auto-migration of database schema on startup (configurable).
  • SMTP mailer support without any external dependencies.
  • Configurable logging level and log format (JSON or pretty).
  • Testcontainers integration for repository layer tests.
  • Added application build version information.
  • Moonrepo: Using remote ZIP for the templates.
  • Moonrepo: Updated dependencies.

TODO:

  • Update Dockerfile.
  • Add tests for service and transport layers.
  • Add instrumentation (OpenTelemetry) integration.
  • Create the template for the Moonrepo generator.
  • Write detailed documentation.

Type of change 🤔

Please tick any that are relevant to this PR and remove any that aren't.

  • Bugfix (non breaking change which resolve an issue)
  • Feature (non breaking change which adds functionality)
  • Breaking Change (a change which would cause existing functionality to not work as expected)
  • Documentation (a change to documentation)

Submission checklist ✅

  • I have performed a self review of my changes
  • I have updated the documentation where relevant
  • My changes are well written and all ci is passing

- Implemented a new logger middleware for Echo framework to log HTTP requests and responses.
- Added user agent summarization and latency formatting in logs.
- Integrated the logger middleware into the HTTP server.

feat: create user module with CRUD operations

- Developed user module with handlers for creating, listing, retrieving, updating, and deleting users.
- Implemented user validation and error handling in the user service.
- Added user repository for database interactions using pgxpool.

chore: update go.sum with new dependencies

- Added new dependencies for user agent parsing and validation.
- Updated existing dependencies to their latest versions.

fix: adjust swagger generation command

- Modified the swag init command to include the modules directory for generating API documentation.
@Copilot Copilot AI review requested due to automatic review settings September 11, 2025 02:32
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request significantly restructures the project with extensive code style and dependency updates, along with the introduction of a new Go modular monolith application template.

  • Updated code style across the entire codebase to use consistent double quotes for string literals
  • Modernized dependencies across all packages and applications
  • Added a comprehensive Go modular monolith application template with repository, service, and handler layers

Reviewed Changes

Copilot reviewed 263 out of 1218 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/shared-ui Style formatting updates (single to double quotes), dependency version updates
apps/strapi-cms Code style consistency improvements and Strapi version updates
apps/react-ssr Formatting updates and React Router/dependency version bumps
apps/react-app Similar style and dependency updates as react-ssr
apps/nextjs-app Style consistency and test setup improvements
internal/stubs New Go module templates for dummy service implementation
internal/cmd Code formatting improvements for generate-app command
root files Various configuration updates, dependency bumps, and new build scripts

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@riipandi riipandi changed the title Modulith go app Feat: Go modular application Sep 11, 2025
# Conflicts:
#	apps/react-ssr/tsconfig.json
#	template-react-ssr/tsconfig.json
@riipandi riipandi merged commit 083ce20 into main Sep 11, 2025
3 checks passed
@riipandi riipandi deleted the modulith-go-app branch September 16, 2025 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant