Welcome to the yet another awesome project generated with the Gowebly CLI! 🎉
This README file contains all the necessary information about:
- Project overview
- Folders structure
- Starting your project
- Developing your project
- Deploying your project
And some words about the Gowebly CLI.
Backend:
- Module name in the go.mod file:
github.com/user/project
- Go web framework/router:
chi
- Server port:
3000
Frontend:
- Package name in the package.json file:
project
- Reactivity library:
htmx_alpinejs
- CSS framework:
daisyui
Tools:
- Air tool to live-reloading: ✓
- Bun as a frontend runtime: ✕
- Templ to generate HTML: ✓
- Config for golangci-lint: ✕
.
├── assets
│ ├── scripts.js
│ └── styles.scss
├── static
│ ├── images
│ │ └── gowebly.svg
│ ├── apple-touch-icon.png
│ ├── favicon.ico
│ ├── favicon.png
│ ├── favicon.svg
│ ├── manifest-desktop-screenshot.jpeg
│ ├── manifest-mobile-screenshot.jpeg
│ ├── manifest-touch-icon.svg
│ └── manifest.webmanifest
├── templates
│ ├── pages
│ │ └── index.templ
│ └── main.templ
├── .gitignore
├── .dockerignore
├── .prettierignore
├── .air.toml
├── Dockerfile
├── docker-compose.yml
├── prettier.config.js
├── package.json
├── go.mod
├── go.sum
├── handlers.go
├── server.go
├── main.go
└── README.md
❗️ Please make sure that you have installed the executable files for all the necessary tools before starting your project. Exactly:
Templ
: https://github.com/a-h/templ
To start your project, run the Gowebly CLI command in your terminal:
gowebly run
The backend part is located in the *.go
files in your project folder.
The ./templates
folder contains Templ templates that you can use in your frontend part. Also, the ./assets
folder contains the styles.scss
(main styles) and scripts.js
(main scripts) files.
The ./static
folder contains all the static files: icons, images, PWA (Progressive Web App) manifest and other builded/minified assets.
All deploy settings are located in the Dockerfile
and docker-compose.yml
files in your project folder.
To deploy your project to a remote server, follow these steps:
- Go to your hosting/cloud provider and create a new VDS/VPS.
- Update all OS packages on the server and install Docker, Docker Compose and Git packages.
- Use
git clone
command to clone the repository with your project to the server and navigate to its folder. - Run the
docker-compose up
command to start your project on your server.> ❗️ Don't forget to generate Go files from*.templ
templates before run thedocker-compose up
command.
The Gowebly CLI is a next-generation CLI tool that makes it easy to create amazing web applications with Go on the backend, using htmx, hyperscript or Alpine.js, and the most popular CSS frameworks on the frontend.
It's highly recommended to start exploring the Gowebly CLI with short articles "What is Gowebly CLI?" and "How does it work?" to understand the basic principle and the main components built into the Gowebly CLI.