5 ms·
Can anyone point me to a decent fully contained example of a smallish app in Phoenix on something like github? I've spent a couple of hours reading some of the
by jsmeaton 10y ago
Can anyone point me to a decent fully contained example of a smallish app in Phoenix on something like github? I've spent a couple of hours reading some of the Elixir docs and getting familiar with some concepts, but I still have no idea how an Elixir app or a Phoenix app would actually look.
- djm_ 10y agoSure! Josh Adams of Daily Drip recently did a Kickstarter [1] to build an open source forum in Elm, Phoenix & Elixir. You can follow the progress either with Daily Drip or just by watching the repository [2] as all the work is happening in the open. For other repos, Elixir and Phoenix both have "topics" on github now so you can filter a search by repos which are tagged with those topics and order them by stars (obviously this does not sort the wheat from the chaff or the libraries from the projects though). [3] Welcome to the community :) [1] https://www.kickstarter.com/projects/1003377429/firestorm-an-open-source-forum-in-phoenix-from-eli https://www.kickstarter.com/projects/1003377429/firestorm-an... [2] https://github.com/dailydrip/firestorm https://github.com/dailydrip/firestorm [3] https://github.com/search?o=desc&q=topic%3Aelixir+topic%3Aphoenix&s=stars&type=Repositories&utf8=%E2%9C%93 https://github.com/search?o=desc&q=topic%3Aelixir+topic%3Aph...
- hansihe 10y agoI 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