meta-erlang icon indicating copy to clipboard operation
meta-erlang copied to clipboard

Idea: Create a couple of meta-erlang/<example project>

Open Raphexion opened this issue 5 years ago • 5 comments

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.

Raphexion avatar Mar 23 '21 07:03 Raphexion

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.

joaohf avatar Mar 24 '21 01:03 joaohf

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.

Raphexion avatar Mar 26 '21 11:03 Raphexion

Hej Hej!

The first recipe-examples batch is here: https://github.com/meta-erlang/meta-erlang/pull/101

joaohf avatar May 17 '21 00:05 joaohf

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:

Raphexion avatar May 17 '21 06:05 Raphexion

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

joaohf avatar Jul 10 '21 20:07 joaohf