Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gleam-lang/example-todomvc
📝 An example web application in Gleam
https://github.com/gleam-lang/example-todomvc
example-project fullstack gleam postgresql webapp
Last synced: 27 days ago
JSON representation
📝 An example web application in Gleam
- Host: GitHub
- URL: https://github.com/gleam-lang/example-todomvc
- Owner: gleam-lang
- Created: 2022-01-29T23:14:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-15T14:20:54.000Z (5 months ago)
- Last Synced: 2024-08-03T04:08:48.410Z (4 months ago)
- Topics: example-project, fullstack, gleam, postgresql, webapp
- Language: Gleam
- Homepage:
- Size: 219 KB
- Stars: 115
- Watchers: 5
- Forks: 15
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-gleam - gleam-lang/example-todomvc - A serverside only implementation of Todo MVC written in Gleam! (Projects / Web applications)
README
# TodoMVC
An example codebase that shows how to create a web application in Gleam. It is a
backend based implementation of [TodoMVC](https://todomvc.com/) 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
- TestingRather than demonstrate any particular frontend web framework this project uses
[HTMX](https://htmx.org/), a library that adds some new HTML attributes for
declaratively performing AJAX requests.## HTML templates
The HTML templates are compiled using [matcha](https://github.com/michaeljones/matcha).
To regenerate the Gleam code from the templates run:
```shell
matcha && gleam format .
```## Thanks
Special thanks to [GregGreg](https://gitlab.com/greggreg/gleam_todo) for the
first version of TodoMVC in Gleam.