Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iarthstar/purescript-fetch-api
Fetch API JS bindings for PureScript
https://github.com/iarthstar/purescript-fetch-api
api bindings fetch fetch-api javascript purescript rest
Last synced: about 1 month ago
JSON representation
Fetch API JS bindings for PureScript
- Host: GitHub
- URL: https://github.com/iarthstar/purescript-fetch-api
- Owner: iarthstar
- License: mit
- Created: 2019-11-08T11:26:50.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-08T11:35:48.000Z (about 5 years ago)
- Last Synced: 2024-10-11T10:19:26.897Z (2 months ago)
- Topics: api, bindings, fetch, fetch-api, javascript, purescript, rest
- Language: PureScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# purescript-fetch-api
fetch API js bindings for PureScript
## Add purescript-fetch-api to your existing projects
```
bower i purescript-fetch-api
```## Code Snippet
```purescript
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
```## Development Guide
#### NOTE : Please make sure you have yarn :: [Installing yarn](https://yarnpkg.com/en/docs/install)
* Build Project
```bash
$ yarn build
```* To Test
```bash
$ yarn test
```* To watch for changes
```bash
$ yarn start
```