No description
Find a file
2024-02-20 20:47:39 -06:00
.envrc Initial commit 2024-02-20 20:37:55 -06:00
.gitignore Initial commit 2024-02-20 20:37:55 -06:00
flake.lock Initial commit 2024-02-20 20:37:55 -06:00
flake.nix Initial commit 2024-02-20 20:37:55 -06:00
main.ex Counters work, now for pubsub 2024-02-20 20:47:39 -06:00
readme.md Initial commit 2024-02-20 20:37:55 -06:00

Single-File Elixir (sfe)

I love Elixir, but for some reason I can't stand it's default project structure and willingness to spread a hundred things across a hundred files.

I was inspired by this:

https://github.com/wojtekmach/mix_install_examples/blob/main/phoenix_live_view.exs

So I've put this together in a Nix Flake to serve as a decent launch point for quick-and-dirty Elixir applications.

Here ya go!

elixir main.ex

Or if you want "hot reloading"

watchexec --filter main.ex --restart 'elixir main.ex'

To Do

  • Look into :counters to implement pubsub stuff