Golosus is a powerful Go package designed to streamline the creation of folder templates for web development projects. This package simplifies the setup process by generating a structured template with essential files for a modern web application. Golosus includes support for:
- Templ: Utilize the power of Go templating to customize your project structure with templ package.
- HTMX: Seamless integration for dynamic and interactive web pages.
- Typescript: Jumpstart your frontend development with a pre-configured TypeScript setup.
- Echo: Leverage the Echo web framework for robust backend development.
- 🌐 Web Essentials: Automatic creation of folders and files for a well-organized web project.
- 🚀 Fast Setup: Save time and effort by using Golosus to kickstart your development environment.
- 🧰 Customization: Tailor the template to your specific project requirements using Go templating.
-
You need to have go & node & templ cli installed on your computer. I assumed you already have go & node to get templ -> Check
-
Install latest Golosus from releases and add it to your bin. (this step will be changed - go get / install will be available)
-
Run Golosus to create your project template:
golosus -name="YOUR PROJECT NAME" -github="YOUR GITHUB NICKNAME"
-
Get in the directory
cd <your-project-name>
-
Install dependencies by make
make init
or Install dependencies by hand
templ generate go mod tidy npm install --prefix ./typescript
-
Start using by
make run
or
templ generate npm run build --prefix ./typescript go run cmd/
-
Check localhost:3000/example !
-
To build your project you can use
make build
or
templ generate npm run build --prefix ./typescript go build -o ./bin ./cmd
Exciting updates are planned for Golosus! In the future, we are gearing up to introduce React support as the frontend alongside HTMX. Here's what you can expect:
- React Integration: Golosus will support React for the frontend, working seamlessly with HTMX. React will emit events, and HTMX will catch and reflect these changes, offering a powerful combination for dynamic and interactive web applications.
Stay tuned for upcoming releases that will bring these enhancements to Golosus, making it even more versatile and adaptable to your web development needs!
Contributions and feedback are welcome! Feel free to:
- Report Issues: Open issues to report bugs or request features.
- Contribute Code: Submit pull requests to enhance Golosus and make it even more versatile.
This project is licensed under the MIT License. See the LICENSE file for details.