Sample SPA webapp
- example for Elm itself
- example config webpack + elm-webpack-loader
- example usage material-components (multiple tabs)
- one tab (app) is standard Elm increase/decrease
- other is finding first unique item in a list of strings
Install
- conda (miniconda is enough)
- create env, e.g.
conda create -n elm
- activate it, e.g.
conda activate elm
- create env, e.g.
- node (and npm with it):
conda install -c conda-forge nodejs
- so now nodejs is contained within your conda env
- other conda environments can have other nodejs versions
- obsolete
- no need to specifically install elm or elm-test now
- as they are both specified in
package.json
- so these are contained within the nodejs installation contained by conda
- these are not available directly to your command shell (unless you make them to be, e.g. by symbolic links)
- but npm commands can use them (below)
npm install
- (maybe)
elm make src/Main.elm --output temp.html
- to get Elm packages pulled in, CHECK: is this necessary?
Verify installation by running npm run elm-test
- Run
rm -rf dist/; npm run build
- Point your browser to
dist/index.html
Enjoy.