Skip to content

mmusnjak/gleam-example-todomvc

 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Gleam 56.8%
  • CSS 23.5%
  • HTML 17.1%
  • Erlang 1.4%
  • Dockerfile 1.2%