To fetch data on server- (Node) and front-end (JS) we have to use a library which is supported on both sides. PureScript's Network.HTTP.Affjax won't work for this. So let's try it with isomorphic-fetch.
TODOs:
[x] FFI for isomorphic-fetch
[x] Example for fetching data of a public API (e.g. Github users)
To fetch data on server- (Node) and front-end (JS) we have to use a library which is supported on both sides. PureScript's
Network.HTTP.Affjax
won't work for this. So let's try it withisomorphic-fetch
.TODOs:
isomorphic-fetch
Guide
's API