Skip to content

nwrenger/htmx-gorm-gin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

htmx-gorm-gin

htmx-gorm-gin is a lightweight example of a RESTful API utilizing SQLite as its database and powered by the HTMX library for seamless server-client interactions.

Features

  • RESTful API: Built on the principles of Representational State Transfer (REST) for efficient and standardized communication.
  • SQLite Database: Utilizes a SQLite database for data storage, providing a simple and self-contained solution.
  • HTMX Integration: Enhances server-client interactions through HTMX, allowing for dynamic updates and a smoother user experience.

Usage

  • Install Perquisites: You have to have go, air and bun installed.
  • Install Dependencies: Install dependencies of go (in root) and bun (in content).
  • Run Dev: Finally, You have to use the air command, it's pre-configured in the air-toml.
  • Build: To build the project you have to run the following command, make sure to include in your export the static files:
cd ./static/content && bunx tailwindcss -i ./../../web/input.css -o ./dist/output.css && cd ./../../ && templ generate && go build .

About

RESTful API, HTMX and a SQLite database infrastructure

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published