Go-blueprint allows users to spin up a quick Go project using a popular framework
Go-blueprint allows users to spin up a quick Go project using a popular framework
Go Blueprint is a CLI tool that allows users to spin up a Go project with the corresponding structure seamlessly. It also gives the option to integrate with one of the more popular Go frameworks (and the list is growing with new features)!
go install github.com/melkeydev/go-blueprint@latestThis installs a go binary that will automatically bind to your $GOPATH
if you’re using Zsh, you’ll need to add it manually to
~/.zshrc.
GOPATH=$HOME/go PATH=$PATH:/usr/local/go/bin:$GOPATH/bindon't forget to update
source ~/.zshrcnpm install -g @melkeydev/go-blueprintbrew install go-blueprintThen in a new terminal run:
go-blueprint createYou can also use the provided flags to set up a project without interacting with the UI.
go-blueprint create --name my-project --framework gin --driver postgres --git commitSee go-blueprint create -h for all the options and shorthands.
Go Blueprint now offers enhanced database support, allowing you to choose your preferred database driver during project setup. Use the --driver or -d flag to specify the database driver you want to integrate into your project.
Choose from a variety of supported database drivers:
Blueprint is focused on being as minimalistic as possible. That being said, we wanted to offer the ability to add other features people may want without bloating the overall experience.
You can now use the --advanced flag when running the create command to get access to the following features. This is a multi-option prompt; one or more features can be used at the same time:
Note: Selecting Tailwind option will automatically select HTMX unless React is explicitly selected
Blueprint UI is a web application that allows you to create commands for the CLI and preview the structure of your project. You will be able to see directories and files that will be created upon command execution. Check it out at go-blueprint.dev
Here's an example of setting up a project with a specific database driver:
go-blueprint create --name my-project --framework gin --driver postgres --git commitAdvanced features are accessible with the --advanced flag
go-blueprint create --advancedAdvanced features can be enabled using the --feature flag along with the --advanced flag.
HTMX:
go-blueprint create --advanced --feature htmxCI/CD workflow:
go-blueprint create --advanced --feature githubactionWebsocket:
go-blueprint create --advanced --feature websocketTailwind:
go-blueprint create --advanced --feature tailwindDocker:
go-blueprint create --advanced --feature dockerReact:
go-blueprint create --advanced --feature reactOr all features at once:
go-blueprint create --name my-project --framework chi --driver mysql --advanced --feature htmx --feature githubaction --feature websocket --feature tailwind --feature docker --git commit --feature reactVisit documentation to learn more about blueprint and its features.
Licensed under MIT License
[Feature Request] add tailwind4 support
[Feature Request] Add webRPC support
[BUG] Postgres Docker Compose incompatible with Postgres 18+ due to data directory change
[Feature Request] Add option to use folder name as module name when running create command
[Feature Request] swagger ui support
[Feature Request] Add template for CLI based applications without backend
[Feature Request] Add OpenTelemetry instrumentation
[Bug] Creating Project with Git Commit adds .env file too in repository
[Bug] Tailwind doesn't install correctly in React Vite app
Incorrect variable naming in standard_library.go.tmpl