For each example, you have its respective module name.
You can find the source associated to the example under ./src/$MODULE_NAME,
and its tests under ./test/$MODULE_NAME.
To run an example, you can run the following:
# replace $MODULE_NAME with the name of the module associated to each example
gleam run -m $MODULE_NAME/appTo run the tests, do the following:
gleam testIf you would like to use these tests in your project, make sure to change the
app keyword to the name of your project.
Here is a list of all the examples and their associated module name (formatted
"$MODULE_NAME - Example title"):
hello_world- Hello, World!routing- Routingworking_with_form_data- Working with form dataworking_with_json- Working with JSONworking_with_other_formats- Working with other formatsusing_a_database- Using a databaseserving_static_assets- Serving static assetslogging- Loggingworking_with_cookies- Working with cookiesworking_with_files- Working with files