fetch API js bindings for PureScript
bower i purescript-fetch-api
main :: Effect Unit
main = launchAff_ do
let configPost = CreateUserReq { name : "Arth K. Gajjar", job : "Developer" }
fetch configPost >>= case _ of
Right (CreateUserRes a) -> log $ "POST : " <> show a
Left err -> logShow err
NOTE : Please make sure you have yarn :: Installing yarn
- Build Project
$ yarn build
- To Test
$ yarn test
- To watch for changes
$ yarn start