Elm front-end for Rust API (Part 1)

preview_player
Показать описание
In this video, we setup our Brunch/Elm environment for the front-end of our Rust API. We also build out the basic get request logic and view for our Elm front-end.

Рекомендации по теме
Комментарии
Автор

Good stuff. FYI getElementById is way faster than querySelector if you just need to target an id.

KNDRD
Автор

Excellent video. Is there some way to do this without NodeJs ?

joaoalves
Автор

A couple of questions, how do you get the arrows to change from -> to a more nicer looking arrows and the same for |> to actually looking like triangles. Last question what theme are you using to get elm to highlight the way you have it. Yours seems much more appleaing then mine. I am using atom and starting to get the hang of working with elm the more I working with it. I am starting to rewrite a asp.net project in elm utilizing an api to get the data I need.

daffy
Автор

Very good tutorial!
But I still have some errors when running 'npm start'.
1. The elm compiler does not find a 'Html.Program' type.
2. The elm compiler does not find a 'toString' "variable"
I included the same libraries as you do and these are my dependencies:
"elm-version": "0.19.0",
"dependencies": {
"direct": {
"elm/core": "1.0.0",
"elm/html": "1.0.0",
"elm/http": "1.0.0",
"elm/json": "1.0.0"
},
"indirect": {
"elm/virtual-dom": "1.0.2"
}
}
Does anyone know why that is?

Gameplayerxyzxxx