Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kgashok/qnaelm
A REST Elm Client to consume Q&A services from Microsoft
https://github.com/kgashok/qnaelm
elm microsoft
Last synced: 8 days ago
JSON representation
A REST Elm Client to consume Q&A services from Microsoft
- Host: GitHub
- URL: https://github.com/kgashok/qnaelm
- Owner: kgashok
- Created: 2016-12-21T17:00:29.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-05-11T08:20:35.000Z (over 5 years ago)
- Last Synced: 2024-11-02T01:42:31.286Z (about 2 months ago)
- Topics: elm, microsoft
- Language: JavaScript
- Size: 997 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# qnaElm
A REST Elm Client to consume Q and A services from MicrosoftAn improvement over the stock example found in the elm-lang/try list.
And also connecting to Microsoft's cognitive services for Q&A.# Version 0.x
![version1](https://github.com/kgashok/qnaElm/blob/master/img/qnaService.png)# Version 1.x
![version2](https://github.com/kgashok/qnaElm/blob/master/img/version2.png)For a demo, click [this](https://preview.c9users.io/kgashok/qnamicro/index.html?_c9_id=livepreview1&_c9_host=https://ide.c9.io).
## Important Reading
JSON parsing is a minefield https://news.ycombinator.com/item?id=12796556
### Resolving Issue #19
The moment to do this is after you have received and
processed your last HTTP response. So in a branch in your `update`,
something like```
case msg of
ReceivedHttpResponse response ->
let
newModel = processInModel response model
in
if (hasLastResponse newModel) then
update SortList newModel
else
(newModel, Cmd.none)
```