A simple CLI tool written in Go that scaffolds a full-stack project with a Go backend and a Vite + React + Tailwind frontend.
-
Creates a new project folder with the given name
-
Initializes a Go backend
- Runs
go mod init - Creates common folders:
api/,database/,utils/ - Adds starter files:
main.go,.env,.gitignore,README.md
- Runs
-
Sets up a frontend
- Runs
npm create vite@latestwith the React template - Installs and configures Tailwind CSS + PostCSS + Autoprefixer
- Updates
tailwind.config.jsand CSS files automatically
- Runs
You can install the CLI in two ways:
- Download the binary (Windows)
Download the latest prebuilt binary from GitHub:
curl -L -o govite.exe https://github.com/Not-Dhananjay-Mishra/FastVite-Go/raw/main/govite.exe
Then run it directly:
./govite.exe myapp
- Install with Go
If you have Go installed, you can install it globally:
go get github.com/Not-Dhananjay-Mishra/FastVite-Go
cd FastVite-Go
go mod tidy
go install
<project-name>/
│── api/ # API endpoints
│── database/ # Database layer
│── utils/ # Utility functions
│── main.go # Go entry point
│── .env # Environment variables
│── .gitignore
│── README.md
│── frontend/ # React + Vite + Tailwind app
Run the CLI and pass your project name:
./goviteThis will:
- Create a
myapp/directory - Scaffold Go backend files
- Scaffold
frontend/with Vite + React - Install & configure Tailwind automatically
./goviteOutput:
Making Go backend...
Making JS frontend...
Adding Tailwind CSS...
✅ Project setup complete with Go backend + Vite + Tailwind frontend!
- Go 1.20+
- Node.js + npm
- Git (optional but recommended)
Pull requests are welcome! If you find a bug or have a feature request, open an issue.