[elm-discuss] Re: Design of Large Elm apps
Thanks all for the responses, got a lot of good information here to start playing with. Does seem the consensus is that there is one "main" elm module that will bubble down information to other sections and modules. Thanks!!! -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[elm-discuss] Design of Large Elm apps
Got a few questions regarding the best way, or what options there are for scaling up to a large site. If i have a site with lots of features what is the best way to orgainze everything? *One Elm page to rule them all?* With this approach you only have to deal with one update happening, you can separate code into different modules, but the update function would be HUGE. Guess this would be the same as a single page application? *One Elm page per HTML page?* This way every page deals with only what it is used for. You can write common things in reusable modules. One problem might be switching to other elm pages. The only really good way right now that i have is using a port to "window.locaion.href" to another elm page. Then pulling all the data it requires from the server using more ports. *One Elm page per feature?* This way you can write separate apps for each part of your page. One for the header menu bar, one for a sidebar, and one for each main feature. This way you can mix and match and piece together for a full page. BUT you might have to do a lot of port talking between each section. *Some other way?*? Been searching around a cant seem to find any blogs or topics on this subject. Our stack is Elm/Phoenix/Elixir/Postgres. If anyone has created a large application using Elm would happy to have your input on what worked/ didn't work for you. Thanks, -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[elm-discuss] Re: Elm install issues
Looking into more of the errors and these ones stood out: Elm compile: elm-stuff/packages/elm-lang/core/4.0.3/src/Maybe.elm, in > web/elm, to ../static/vendor/maybe.js > [debug] Live reload: priv/static/css/seatsaver.css > [debug] Live reload: priv/static/images/phoenix.png > Your dependencies form a cycle: > ┌─┐ > │Maybe > └─┘ > You may need to move some values to a new module to get rid of the cycle. There is also one like this but with "Result", The only packages i have install are "elm-lang/core": "4.0.3 <= v < 5.0.0", "elm-lang/html": "1.1.0 <= v < 2.0.0" -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[elm-discuss] Elm install issues
Trying to learn Elm, got the very basics working, but there are ton of complie errors that I am unsure about. 23 Jul 15:59:05 - error: Compiling of > web/elm/elm-stuff/packages/elm-lang/core/4.0.3/src/Array.elm failed. > Command failed: elm-make --yes --output ../static/vendor/array.js > elm-stuff/packages/elm-lang/core/4.0.3/src/Array.elm > I cannot find module 'Native.Array'. > Module 'Array' is trying to import it. > Potential problems could be: > * Misspelled the module name > * Need to add a source directory or new dependency to elm-package.json > ^G Almost all the errors relate to 'Native.(something)'. Was trying to find some package named Native, but cant seem to find anything. Am i missing some install step possibly? Thanks, -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.