3 ms·
I have worked with Elixir quite a lot, and I think I have a fair idea of how the language works in general, and how OTP apps are structured. Even so, I find my
by hansihe 10y ago
I have worked with Elixir quite a lot, and I think I have a fair idea of how the language works in general, and how OTP apps are structured.
Even so, I find myself having the exact same issue as you are having when using Phoenix and Ecto. The way I like learning something new is by looking at something someone else has made. This gives me a much better view of how things are done than just reading getting-started guides and docs. I have looked, but I haven't found a lot of examples that actually applies to the latest versions of Phoenix and Ecto.
- brightball 10y agoFor what it's worth, this is generally where the "build a blog" type examples come in handy. It's a simple, repeatable process that gets you through the basics of the architecture across the board. You'll get a couple of routes, a couple of controllers, a little bit of database access, a bit through the view layers and by the time you're done you'll have a simple app that you can experiment with. It's generally my go-to "learn the language" process for anything. I didn't open source it, but here's a little write up on mine. http://www.brightball.com/articles/insanity-with-elixir-phoenix-postgresql http://www.brightball.com/articles/insanity-with-elixir-phoe...
- auxbuss 10y agoHi, Take a look at the Building Umbrella Project from elxirconf: https://github.com/poteto/elixirconf-201620 https://github.com/poteto/elixirconf-201620 by Wojtek Mach. The source: https://github.com/wojtekmach/acme_bank22 https://github.com/wojtekmach/acme_bank22 is a great example of an umbrella app. For example, he uses two instances of phoenix (backoffice and bank_web). It's a working app, so you can experiment with it too. The talk is here: https://www.youtube.com/watch?v=6NTmUQClHrU18 https://www.youtube.com/watch?v=6NTmUQClHrU18 I found it very instructive.
- tvon 10y agoFYI, your links all have numbers appended to them. The working links seem to be: https://github.com/poteto/elixirconf-2016 https://github.com/poteto/elixirconf-2016 https://github.com/wojtekmach/acme_bank https://github.com/wojtekmach/acme_bank https://www.youtube.com/watch?v=6NTmUQClHrU https://www.youtube.com/watch?v=6NTmUQClHrU