ThorstenHans / spin-htmx

A sample to demonstrate how to use HTMX with Spin
7 stars 1 forks source link

Spin & HTMX sample application

This is a sample application to demonstrate how to use HTMX with Fermyon Spin. The Spin app consists of two components:

For persistence, the app uses SQLite. The database schema is defined in ./migration.sql.

Running locally

To run the app locally, you must have spin CLI installed. See https://developer.fermyon.com/spin/v2/install for installation instructions.

Once you have spin installed, you can run the app locally by running the following command:


# Compile the sample
spin build

# Run the sample
spin up --sqlite @migration.sql