A macOS cache cleaner application built with Wails v2, Go backend, and vanilla JavaScript frontend.
This is a desktop application that provides cache cleaning functionality for macOS. The app is built using:
- Backend: Go with Wails v2 framework
- Frontend: Vanilla JavaScript with Vite
- Platform: macOS (with potential for cross-platform support)
Before running this application, make sure you have the following installed:
-
Go (version 1.23 or later)
brew install go
-
Wails CLI
go install github.com/wailsapp/wails/v2/cmd/wails@latest
-
Node.js and npm (for frontend development)
brew install node
cache_app/
├── app.go # Go application logic
├── main.go # Main entry point
├── go.mod # Go module dependencies
├── wails.json # Wails configuration
├── frontend/ # Frontend source code
│ ├── src/
│ │ ├── main.js # Main JavaScript file
│ │ ├── app.css # Application styles
│ │ └── style.css # Base styles
│ ├── index.html # HTML template
│ └── package.json # Frontend dependencies
└── build/ # Build configuration and assets
To run in live development mode with hot reload:
wails devThis will:
- Start a Vite development server for the frontend
- Run the Go backend
- Provide hot reload for frontend changes
- Open the application in a desktop window
To work on the frontend separately, you can run:
cd frontend
npm install
npm run devThis will start a development server at http://localhost:5173.
To build the application for development:
wails buildTo build a production-ready application:
wails build -cleanThe built application will be available in the build/bin directory.
After building, you can run the application:
./build/bin/cache_appThis project is open source and available under the MIT License.