mmusnjak / gleam-example-todomvc

πŸ“ An example web application in Gleam

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TodoMVC

An example codebase that shows how to create a web application in Gleam. It is a backend based implementation of TodoMVC and demonstrates these features:

  • A HTTP server
  • Routing
  • CRUD
  • Use of a SQLite database
  • HTML templates
  • Form parsing
  • Signed cookie based authentication
  • Serving static assets
  • Logging
  • Testing

Rather than demonstrate any particular frontend web framework this project uses HTMX, a library that adds some new HTML attributes for declaratively performing AJAX requests.

HTML templates

The HTML templates are compiled using matcha.

To regenerate the Gleam code from the templates run:

matcha && gleam format .

Thanks

Special thanks to GregGreg for the first version of TodoMVC in Gleam.

About

πŸ“ An example web application in Gleam


Languages

Language:Gleam 56.8%Language:CSS 23.5%Language:HTML 17.1%Language:Erlang 1.4%Language:Dockerfile 1.2%