No description
Find a file
2024-06-09 11:16:23 +02:00
bootstrap updated README 2024-06-09 11:16:23 +02:00
db updated paths 2024-06-06 16:15:35 +02:00
event fixed installer 2024-06-07 11:03:09 +02:00
kit asset view helper 2024-06-08 11:20:22 +02:00
validate updated README 2024-06-09 11:16:23 +02:00
view changed view helper 2024-06-08 11:49:34 +02:00
.gitignore install.go 2024-06-06 11:44:55 +02:00
go.mod Merge as a pure function on validate 2024-06-08 09:52:30 +02:00
go.sum Merge as a pure function on validate 2024-06-08 09:52:30 +02:00
install.go fixed installer 2024-06-07 11:03:09 +02:00
README.md updated README 2024-06-09 11:16:23 +02:00

GOTHKIT

Create interactive applications with Golang, HTMX, and Templ

Table of content

Installation

go install github.com/anthdm/gothkit@master

After installation you can create a new project by running:

gothkit [myprojectname]

You can now navigate to your project:

cd [myprojectname]

Getting started

Development server

Run the development server with the following command:

make dev 

Hot reloading the browser

Hot reloading is configured by default when running your application in development.

NOTE: on windows you might need to run make assets in another terminal for god knows why.

Migrations

Create a new migration

make db-mig add_user_table

Will create a new migration SQL file inside app/db/migrations

Migrate the database

make db-up

Reset the database

make db-reset

Seeds

make db-seed

This command will run the seeds file located at cmd/scripts/seed/main.go

Testing

Testing handlers