Getting started with Elixir
[Phoenix](http://phoenixframework.org/) is a web framework build on [Elixir](https://elixir-lang.org), which runs on the Erlang VM. Why check out another web framework & language? IDK... the grass is always greener. There are new ideas in new frameworks. Maybe one will fit more with my personal development opinions.
Phoenix is a web framework build on Elixir, which runs on the Erlang VM. Why check out another web framework & language?
IDK... the grass is always greener. There are new ideas in new frameworks. Maybe one will fit more with my personal development opinions.
So here we are. So far I like it. Both Elixir and Phoenix. Have only started some very basic hobby apps. Elixir is very Ruby looking, but pretty different in most regards. It's functional for one big one. And immutable.
Install
brew install elixir
Mix
Like Lein
& Rake
mix help
mix new PROJECT_NAME --sup
HEXs
Like Gems https://hex.pm is the place to find then and see how popular they are.
Tests
- mix_test_watch: auto run tests
- mock: mocking lib
- credo: linter
- DocTests - tests in the documentation.
Web development
mix phx.new PROJECT_NAME
- Phoenix
- Pug templates
- Pug reference
- Customize Generators - I did this to use PUG templates.
- Nested Resources
References
Slack: elixir.slackin
- http://elixir-lang.org
- https://github.com/itsgreggreg/elixir_quick_reference
- https://github.com/christopheradams/elixir_style_guide
- http://exercism.io/
VIM
Plug 'elixir-editors/vim-elixir' Plug 'slashmili/alchemist.vim'
Webmentions
These are webmentions via the IndieWeb and webmention.io. Mention this post from your site: