Skip to content
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.
/ template Public archive

Template for LeapKit applications

Notifications You must be signed in to change notification settings

leapkit/template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ Important: Leapkit now uses the leapkit/leapkit monorepo. That's where this framework will advance. you can find the template there.

LeapKit Template

logo

This is the LeapKit template for building web applications with Go, HTMX and Tailwind CSS. It integrates useful features such as hot code reload and css recompiling.

Getting started

Use this template by using gonew:

go run rsc.io/tmp/gonew@latest github.com/leapkit/template@v1.1.5 superapp

Setup

Install dependencies:

go mod download
go run ./cmd/setup

Building the application

# Building TailwindCSS with tailo
> go run github.com/paganotoni/tailo/cmd/build@a4899cd

# Building the app
> go build -tags osusergo,netgo -buildvcs=false -o bin/app ./cmd/app

Running the application

To run the application in development mode execute:

go run ./cmd/dev

And open http://localhost:3000 in your browser.

Generating a migration

go run github.com/leapkit/core/cmd/generate@latest migration