Skip to content

IA dream pics generator made with Go, htmx and Supabase

Notifications You must be signed in to change notification settings

hackemateninja/dreampic

Repository files navigation

Your awesome project

Welcome to the yet another awesome project generated with the Gowebly CLI! 🎉

This README file contains all the necessary information about:

And some words about the Gowebly CLI.

Project overview

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: ✕

Folders structure

.
├── 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

Starting your project

❗️ Please make sure that you have installed the executable files for all the necessary tools before starting your project. Exactly:

To start your project, run the Gowebly CLI command in your terminal:

gowebly run

Developing your project

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.

Deploying your project

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:

  1. Go to your hosting/cloud provider and create a new VDS/VPS.
  2. Update all OS packages on the server and install Docker, Docker Compose and Git packages.
  3. Use git clone command to clone the repository with your project to the server and navigate to its folder.
  4. 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 the docker-compose up command.

About the Gowebly CLI

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.

another awesome project built with the Gowebly CLI

About

IA dream pics generator made with Go, htmx and Supabase

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published