How You Can Build an API Client Library in JavaScriptby@ilyamkin
473 reads

How You Can Build an API Client Library in JavaScript

May 1st 2020
5 min
by @ilyamkin 473 reads
tldt arrow
Read on Terminal Reader🖨️

Too Long; Didn't Read

API client is small, scalable, and works both in the browser and in Node.js. We'll go through five steps and come out with a clear plan on how to implement your own client. The best choice for a web project is Webpack, but our library is fairly small and simple, so I've chosen Rollup as base bundler together with Microbundle together with Typescript Mixins for easy setup. To make testing easier we can utilize the Nock library that conveniently mocks HTTP server for us.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - How You Can Build an API Client Library in JavaScript
Ilya Lyamkin HackerNoon profile picture

@ilyamkin

Ilya Lyamkin

About @ilyamkin
LEARN MORE ABOUT @ILYAMKIN'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa