crud

command
v0.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

README

Liveflux CRUD Example

A sophisticated example of using multiple liveflux components together on the same page to create a CRUD (Create, Read, Update, Delete) application.

Features

  • Create User Modal Component
  • Read Users List Component
  • Update User Modal Component
  • Delete User Confirmation Modal Component

Run

# from the liveflux repo root
go run ./examples/crud

Then open http://localhost:8080

Screenshot

CRUD

More screenshots

User List

Create User

Update User

Delete User

What it does

  • Renders a server-side CRUD using liveflux.SSR
  • Mounts the JS runtime via liveflux.Script()
  • Sends actions to /liveflux endpoint

Notes

  • The component uses c.Root(content) (provided by liveflux.Base) to wrap its markup with the standard Liveflux root and required hidden fields (component, id).

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL