About this project
Go-blueprint is a command-line tool designed to help developers quickly scaffold Go projects with a well-organized directory structure. It supports integration with several popular Go web frameworks including Chi, Gin, Fiber, HttpRouter, Gorilla/mux, and Echo. Users can also select from a range of database drivers during project setup, including MySQL, Postgres, SQLite, MongoDB, Redis, and ScyllaDB GoCQL.
The tool can be installed via Go (`go install`), NPM (`npm install -g`), or Homebrew (`brew install`). Once installed, running `go-blueprint create` launches an interactive UI to configure the project, or users can pass flags directly for non-interactive setup, such as `--name`, `--framework`, `--driver`, and `--git commit`.
An `--advanced` flag unlocks additional optional features that can be enabled individually or in combination using the `--feature` flag. These include HTMX support via Templ, GitHub Actions CI/CD workflow setup, Websocket endpoint configuration, Tailwind CSS integration, Docker configuration, and a React frontend written in TypeScript with an example fetch request to the backend. Selecting Tailwind automatically enables HTMX unless React is explicitly chosen.
A companion web application called Blueprint UI is available at go-blueprint.dev, allowing users to create CLI commands and preview the project structure (directories and files) before execution. The project is licensed under the MIT License.
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.