Elm is a programming language. Currently it is for client-side (browser) use only. So there is no server or db persistence layer. "elm-make --output elm.js" compiles your elm program to JavaScript, so that it can be embedded in a web page.
You can learn how to use Elm by following this guide <http://guide.elm-lang.org/>. On Sun, Jul 31, 2016 at 1:27 PM, Neil Souza <[email protected]> wrote: > ok, npm install worked. > > cloned the todo example, cd into the directory and ran `elm reactor`. > > opened up http://localhost:8000, see the list of files. > > clicked on `Todo.eml` and got a blank page. > > ok, get out of reactor, run `elm-make Todo.elm --output elm.js` and open > `index.html`. > > todo example is working now, but i'm just pointing to a file in the client. > > what is elm? http://elm-lang.org/ doesn't really explain much. i thought > it was a framework... is it just a transpiler? > > where can i get an app example with server, client and db persistence? > > > On Monday, August 1, 2016 at 3:06:28 AM UTC+8, Neil Souza wrote: >> >> ok, i wanted to take elm for a spin after hearing and reading about it. >> >> searched for "getting started" and found my way to the install >> <http://elm-lang.org/install> page. >> >> i'm on OSX... ok, no package manager options. that's an issue since i >> manage teams of developers and work on multiple machines and use >> configuration management software to keep everyone and everything in sync. >> >> ...and the download is not served over https. i live in China so running >> executables downloaded insecurely is a big no-no (and it probably should be >> everywhere). change the url to https and the page doesn't even load. i'm >> confused. >> >> alright, some searching led me to >> >> https://github.com/elm-lang/elm-compiler/issues/776#issuecomment-56264660 >> >> i've got cabal installed, and i'll just assume that it fetches packages >> securely. >> >> $ cabal update >> Downloading the latest package list from hackage.haskell.org >> Skipping download: Local and remote files match. >> >> $ cabal install elm >> Resolving dependencies... >> Configuring Elm-0.12.3... >> Building Elm-0.12.3... >> Failed to install Elm-0.12.3 >> Build log ( /Users/nrser/.cabal/logs/Elm-0.12.3.log ): >> Configuring Elm-0.12.3... >> Building Elm-0.12.3... >> Preprocessing library Elm-0.12.3... >> [ 1 of 62] Compiling Generate.Html ( compiler/Generate/Html.hs, dist/ >> build/Generate/Html.o ) >> [ 2 of 62] Compiling Generate.Markdown ( compiler/Generate/Markdown.hs, >> dist/build/Generate/Markdown.o ) >> >> >> compiler/Generate/Markdown.hs:7:41: >> Couldn't match type ‘Either Text.Pandoc.Error.PandocError Pandoc’ >> with ‘Pandoc’ >> Expected type: String -> Pandoc >> Actual type: String >> -> Either Text.Pandoc.Error.PandocError Pandoc >> In the second argument of ‘(.)’, namely ‘readMarkdown readOptions’ >> In the expression: >> writeHtmlString writeOptions . readMarkdown readOptions >> cabal: Error: some packages failed to install: >> Elm-0.12.3 failed during the building phase. The exception was: >> ExitFailure 1 >> >> googled around a bit, found this: >> >> https://groups.google.com/forum/#!topic/elm-discuss/UYPDjXrHels >> >> guess it's not being published to cabal anymore. >> >> seems to leave me with no scalable secure way to install elm. >> >> what's the deal? am i missing something? >> >> >> -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
