Elm setup and codes
Setup for woking with Elm.
- Install GNU/Linux (Debian Stable or Ubuntu LTS 20.04)
sudo apt-get install pkg-config build-essential docker.io git curl code -y
code --install-extension aaron-bond.better-commentscode --install-extension usernamehw.errorlenscode --install-extension yzhang.markdown-all-in-onecode --install-extension Elmtooling.elm-ls-vscodecode --install-extension joaompinto.vscode-graphvizcode --install-extension EFanZh.graphviz-preview
cat > $HOME/.config/Code/User/settings.json <<EOF
{
"editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs": "active",
"editor.fontSize": 14,
"editor.fontWeight": "bold",
"editor.formatOnSave": true,
}
EOF
- In github menu go to:
- Settings
- Enable the option: Keep my email addresses private
git config --global core.editor codegit config --global --edit- Paste in
.gitconfigfile
[user]
name = <git_username>
email = <email_noreply>
[core]
autocrlf = input
editor = codesudo groupadd dockersudo usermod -aG docker $USERnewgrp dockerdocker run hello-world
- Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bashexport NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvmnvm install 16--> Observation: In node v.17 doesn't work crate-elm-app packagenvm use 16npm install -g elm elm-test elm-format elm-test elm-format elm-review create-elm-app uglify-js
elm --helpcreate-elm-app <app_name>cd <app_name>elm-app startelm install mdgriffith/elm-ui
ssh-keygen -t ed25519 -C "email"- In github menu go to:
- Settings
- SSH and GPG Keys
- New SSH Key
- Paste the content of the file
~/.ssh/id_ed25519.pub - git clone
<repo_url> - If propmt some message type yes