Hello World examples for meta-erlang
The meta-erlang layer has many recipes for real world applications. On the other hand there is a repository called meta-erlang/hello-world which has a few examples showing how application written in Erlang and Elixir could be implemented and integrated with YP/OE recipes.
For each example there is a correspondent recipe. The following table sumarize the current examples:
Example Name | Language | Description | Recipe |
---|---|---|---|
hello-http-server | Erlang | A minimal http server written in Nitrogen | hello-http-server_0.1.0.bb |
hello-rabbitmq | Erlang | A minimal client that sends heart beats to a rabbitmq server | hello-rabbitmq_0.1.0.bb |
hello-erlang-interoperability | Erlang | A minimal Erlang application with Erlang port driver written in C | hello-erlang-interoperability_0.1.0.bb |
hello-erlang-c-node | Erlang | A minimal Erlang C Node | hello-erlang-c-node_0.1.0.bb |
hello-phoenix | Elixir | A minimal phoenix server | hello-phoenix_0.1.0.bb |
hello-elixir-interoperability | Elixir | A minimal Elixir application with Erlang NIF written in C | hello-elixir-interoperability_0.1.0.bb |
hello-elixir-rustler | Elixir | A rustler getting started application | hello-elixir-rustler_0.1.0.bb |
example-gleam-server | Gleam | An example Gleam web application | hello-gleam-echo-server_0.1.0.bb |
Those examples are great to check how the build tool (rebar3, mix, Makefiles) were implemented in order to build successfuly in a cross-compile environment. However, bear in mind that the examples are very simple and does not do anything really useful. When trying the examples, make sure to use a recent YP/OE version as there is no guarantee that they will works with all Erlang, Elixir and YP/OE version combinations.