Merged
Conversation
- Add generator interfaces and registry for project types and addons in `registry.go`. - Create response structures for success and error responses in `response.go`. - Define `CreateProjectRequest` struct for handling project creation requests in `types.go`. - Implement HTTP handlers for metadata retrieval and project generation in `handler.go`. - Set up routing and middleware for the server in `router.go`. - Initialize the server with proper configurations in `server.go`. - Add a new executable script for starting the server. - Update task documentation to reflect the new structure and features.
…r handlers - Implemented unit tests for the SimpleProjectGenerator, MicroserviceGenerator, and CLIAppGenerator in `internal/generator/generators_test.go`, covering various scenarios including project creation, Docker support, and addon integration. - Added tests for the server handlers in `internal/server/handler_test.go`, ensuring proper response codes and validation for the `/api/meta` and `/api/generate` endpoints. - Updated `tasks.md` to reflect the completion of CLI wiring tasks for project generation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request refactors the backend service for the Go project scaffolding tool by reorganizing the codebase, updating build and CI workflows, and introducing a new command-line interface (
goini). The backend code is moved out of thebackend/directory into a new structure undercmd/server/andinternal/, and a new CLI tool is added undercmd/goini/with comprehensive commands and tests. The CI/CD workflows are updated to reflect these changes, and legacy backend files are removed.Backend codebase reorganization:
backend/directory, including the backend entry point (main.go), configuration loader (config.go), module definition (go.mod), and documentation (README.md). [1] [2] [3] [4]New CLI tool implementation (
goini):cmd/goini/with commands for version, shell completion, listing supported project types/frameworks/addons, and project scaffolding. Includes thorough test coverage for all commands. [1] [2] [3] [4]CI/CD workflow updates:
.github/workflows/backend.ymland.github/workflows/release.ymlto build and test code incmd/server/andinternal/instead ofbackend/. Docker build context and paths are adjusted accordingly. [1] [2] [3] [4]These changes modernize the project structure, streamline build and release processes, and introduce a robust CLI for end users.