UNPKG

2.63 kBMarkdownView Raw
1# aurelia-fetch-client
2
3[![npm Version](https://img.shields.io/npm/v/aurelia-fetch-client.svg)](https://www.npmjs.com/package/aurelia-fetch-client)
4[![ZenHub](https://raw.githubusercontent.com/ZenHubIO/support/master/zenhub-badge.png)](https://zenhub.io)
5[![Join the chat at https://gitter.im/aurelia/discuss](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/aurelia/discuss?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
6[![CircleCI](https://circleci.com/gh/aurelia/fetch-client.svg?style=shield)](https://circleci.com/gh/aurelia/fetch-client)
7
8This library is part of the [Aurelia](http://www.aurelia.io/) platform and contains a simple client based on the Fetch standard.
9
10> To keep up to date on [Aurelia](http://www.aurelia.io/), please visit and subscribe to [the official blog](http://blog.aurelia.io/) and [our email list](http://eepurl.com/ces50j). We also invite you to [follow us on twitter](https://twitter.com/aureliaeffect). If you have questions look around our [Discourse forums](https://discourse.aurelia.io/), chat in our [community on Gitter](https://gitter.im/aurelia/discuss) or use [stack overflow](http://stackoverflow.com/search?q=aurelia). Documentation can be found [in our developer hub](http://aurelia.io/docs). If you would like to have deeper insight into our development process, please install the [ZenHub](https://zenhub.io) Chrome or Firefox Extension and visit any of our repository's boards.
11
12## Documentation
13
14You can read documentation on the fetch client [here](http://aurelia.io/docs/plugins/http-services#aurelia-fetch-client). If you would like to help improve this documentation, the source for the above can be found in the doc folder within this repository.
15
16## Platform Support
17
18This library can be used in the browser or on the server. A Fetch API polyfill may be needed.
19
20## Building The Code
21
22To build the code, follow these steps.
23
241. Ensure that [NodeJS](http://nodejs.org/) is installed. This provides the platform on which the build tooling runs.
252. From the project folder, execute the following command:
26
27 ```shell
28 npm install
29 ```
303. To build the code, you can now run:
31
32 ```shell
33 npm run build
34 ```
354. You will find the compiled code in the `dist` folder, available in module formats: ESM, AMD, CommonJS and UMD.
36
37## Running The Tests
38
39To run the unit tests, first ensure that you have followed the steps above in order to install all dependencies and successfully build the library. Once you have done that, proceed with these additional steps:
40
411. You can now run the tests with this command:
42
43 ```shell
44 npm run test
45 ```
46
\No newline at end of file