📄️ Advanced Flag Usage
The --advanced flag in gofast serves as a switch to enable additional features during project creation. It is applied with the create command and unlocks the following features:
📄️ Go Releaser & Go Test CI
Release process for Go projects, providing extensive customization options through its configuration file, .goreleaser.yml. By default, it ensures dependency cleanliness, builds binaries for various platforms and architectures, facilitates pre-release creation, and organizes binary packaging into archives with naming schemes.
📄️ Websocket
A /websocket endpoint is added in routes.go to facilitate websocket connections. Upon accessing this endpoint, the server establishes a websocket connection and begins transmitting timestamp messages at 2-second intervals. WS is utilized across all Gofast supported frameworks. This simple implementation showcases how flexible a project is.
📄️ Docker
The Docker advanced flag provides the app's Dockerfile configuration and creates or updates the docker-compose.yml file, which is generated if a DB driver is used. The Dockerfile includes a two-stage build, and the final config depends on the use of advanced features. In the end, you will have a smaller image without unnecessary build dependencies.
📄️ React & Tanstack (Vite)
This template provides a minimal setup for getting React working with Vite and Tanstack for the frontend. It comes out of the box with integration of React with Tanstack Router, Tanstack Query and TailwindCSS v4 for rapid type-safe development.