An open API service indexing awesome lists of open source software.

https://github.com/softspiders/rest-client-jest-starter

Jest-tested rest client starter
https://github.com/softspiders/rest-client-jest-starter

client cross-fetch fetch jest rest softspiders ss starter template test under-development

Last synced: about 2 months ago
JSON representation

Jest-tested rest client starter

Awesome Lists containing this project

README

          

[SOFTSPIDERS](https://github.com/softspiders/softspiders)

# rest-client-jest-starter

---

## Feature tags

- browser
- cross-fetch
- jest
- isomorphic
- rest
- starter
- template

---

## Authors

- [Danila Asoyan](https://github.com/Danilkashtan)
- [Alexander Lapygin ](https://github.com/AlexanderLapygin)

---

## Direct ancestors
- [Test example in JavaScript in Jest](https://github.com/softspiders/jest)

---

## Install

```
npm i
```

---

## Run

```
Open index.html with your browser.
In browser console: getRequest('https://jsonplaceholder.typicode.com/posts/1'), postRequest('https://jsonplaceholder.typicode.com/posts'), putRequest('https://jsonplaceholder.typicode.com/posts/1') or deleteRequest('https://jsonplaceholder.typicode.com/posts/1')
```

## Running test

```
In first command prompt run server: npm start
In second command prompt run tests: npm run test
```

---

### License

Licensed under the [MIT license](./LICENSE).