Idea: Create a couple of meta-erlang/<example project>
I think it would be very helpful if we create a couple of minimal examples in the meta-erlang organization. Then we add the recipes in meta-erlang - recipes-examples.
I think it would be very helpful for people starting out with meta-erlang.
Ideas for example repos:
- meta-erlang/hello-world-http-server (A minimal http server writen in cowboy)
- meta-erlang/hello-world-rabbitmq (A minimal client that sends heart beats to a rabbitmq server)
- meta-erlang/hello-phoenix (A minimal phoenix server)
The goal: As a user of meta-erlang, I can quickly add meta-erlang to my bblayers. Add an example (e.g, hello-world-http-server) to my image. Do a bitbake and have an working image.
Hi @Raphexion,
I totally agree on that. I've been thinking on these examples but never came up with a feasible list. We could add the recipes into recipes-examples.
I would also add one more example, as a plus, meta-erlang/hello-interoperability to show the tricky (well it is not so tricky) part when compiling with C/C++ code.
Hej @joaohf, sorry for the late reply.
I really like your idea with meta-erlang/hello-interoperability.
Should I try to do one (e.g, hello-world-http-server) and when I am ready I can share the link here and we can discuss what is good and what is bad.
Hej Hej!
The first recipe-examples batch is here: https://github.com/meta-erlang/meta-erlang/pull/101
Hej @joaohf
I think it looks amazing :tada: Thank you so much for your work. I think this will make the meta so much more approachable. Moreover, they acts as proof-of-concepts and can iron-out the flow off all the classes (rebar3, mix).
One thing that pops into my mind is the placement of the example projects. I think I would create each example as it's proper git repo under the meta-erlang organization (instead of as sub folder). My rational is that will better match the end-user. When a newcomer tries meta-erlang for the first time. I imagine they will add meta-erlang to yocto. Then they want to clone a example repo and use it as a template for the first day or so. I am thinking that they have a very specific project in mind when they start.
Just a small comment. Fantastic work :sunny:
Hello @Raphexion
Thanks for the feedback. I'm just preparing the second round and add more examples. Also taking the opportunity to make your suggestion about one example per repository.
Thanks