This is a repository to try Gleam directly from your browser without installing anything.
Just click this link and log-in to start a new Gitpod Workspace.
Once logged, just past the fololwing into the terminal to get a default Gleam project:
gleam new my_app --template app
cd my_app
rm src/my_app.gleam
cat << 'EOF' > src/my_app.gleam
import gleam/io
pub fn hello_world() -> String {
"Hello, from my_app!\n"
}
pub fn main(args: List(String)) -> Nil {
io.print(hello_world())
}
EOF
Then compile and run the application with:
rebar3 compile && rebar3 escriptize && _build/default/bin/my_app