All Projects → extendi → beccaccino

extendi / beccaccino

Licence: MIT license
Beccaccino is an easy, sexy, reliable, framework agnostic http client for redux that is ⚡️beccaccino fast!

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to beccaccino

fetchingInReact
💎📷 Fetching data from Unsplash.com in React
Stars: ✭ 23 (+76.92%)
Mutual labels:  fetch, axios
Thwack
A tiny modern data fetching solution
Stars: ✭ 268 (+1961.54%)
Mutual labels:  fetch, axios
Code-VueWapDemo
“Vue教程--Wap端项目搭建从0到1”的源码
Stars: ✭ 19 (+46.15%)
Mutual labels:  fetch, axios
vue-methods-promise
Let Vue methods support return Promise
Stars: ✭ 35 (+169.23%)
Mutual labels:  fetch, axios
React Ufo
🛸 react-ufo - A simple React hook to help you with data fetching 🛸
Stars: ✭ 85 (+553.85%)
Mutual labels:  fetch, axios
Redux Requests
Declarative AJAX requests and automatic network state management for single-page applications
Stars: ✭ 330 (+2438.46%)
Mutual labels:  fetch, axios
fetchx
Beautiful way to fetch data in React
Stars: ✭ 71 (+446.15%)
Mutual labels:  fetch, axios
Vue Video
vue + vue-router + vuex + (fetch->axios)
Stars: ✭ 251 (+1830.77%)
Mutual labels:  fetch, axios
Vue Fetch Data
A simple and declarative way to fetch data for Vue components.
Stars: ✭ 65 (+400%)
Mutual labels:  fetch, axios
Frisbee
🐕 Modern fetch-based alternative to axios/superagent/request. Great for React Native.
Stars: ✭ 1,038 (+7884.62%)
Mutual labels:  fetch, axios
Mande
600 bytes convenient and modern wrapper around fetch
Stars: ✭ 154 (+1084.62%)
Mutual labels:  fetch, axios
miniprogram-network
Redefine the Network API of Wechat MiniProgram (小程序网络库)
Stars: ✭ 93 (+615.38%)
Mutual labels:  fetch, axios
i18next-http-backend
i18next-http-backend is a backend layer for i18next using in Node.js, in the browser and for Deno.
Stars: ✭ 270 (+1976.92%)
Mutual labels:  fetch
sysfex
Another system information fetching tool written in C++
Stars: ✭ 107 (+723.08%)
Mutual labels:  fetch
Vue3.0 Element ShopManage
基于vue3.0+TypeScript+Element-plus的商品后台管理
Stars: ✭ 128 (+884.62%)
Mutual labels:  axios
r2curl
Node.js Request Wrapper (axios, fetch, ..) to cURL Command String
Stars: ✭ 30 (+130.77%)
Mutual labels:  axios
vue3-admin
admin-web后台管理项目骨架是基于vue3搭建起来的项目,前端ui库使用的是element-plus组件库,实现登录鉴权,动态菜单功能
Stars: ✭ 107 (+723.08%)
Mutual labels:  axios
gotify-push
Chrome Extension for Send Push Notification 🔔 to gotify/server ☁
Stars: ✭ 32 (+146.15%)
Mutual labels:  fetch
redux-rest-adapter
REST adapter for redux
Stars: ✭ 13 (+0%)
Mutual labels:  axios
react-sync
A declarative approach to fetching data via a React higher order component
Stars: ✭ 18 (+38.46%)
Mutual labels:  fetch

Beccaccino

Build Status Coverage Status PRs Welcome GitHub issues Maintenance

Beccaccino is an easy, sexy, reliable, framework agnostic http client for redux that is blazing beccaccino fast!

Beccaccino is meant to be used both with Node.js and web applications (React, Vue, ...)

Getting Started

yarn add beccaccino

Import the factory for building the client:

> const {
    Beccaccino,
    beccaccinoMiddleware, 
    beccaccinoReducer, 
    BECCACCINO_REDUCER_NAME, 
    resultSelector 
  } = require('beccaccino');

Configure the client with endpoints:

> const endpoints = [{ name: 'getBeers', path: '/v2/beers/:id', method: 'get' }/*, other endpoints ...*/]
> const client = Beccaccino.configure({ baseURL: 'https://api.punkapi.com' }, endpoints);

Go get some beer:

// dispatch redux action
> const { createStore, applyMiddleware, combineReducers } = require('redux');
> const store = createStore(
    combineReducers({
      [BECCACCINO_REDUCER_NAME]: beccaccinoReducer,
    }),
    {},
    applyMiddleware(beccaccinoMiddleware),
  );
> store.dispatch(client.getBeers({ urlParams: { id: 1 } }))
> resultSelector({ state: store.getState(), endpointName: 'getBeers', limit: -1})
[ [ { id: 1,
      name: 'Buzz',
      tagline: 'A Real Bitter Experience.',
      first_brewed: '09/2007',
      description:
       'A light, crisp and bitter IPA brewed with English and American hops. A small batch brewed only once.',
      image_url: 'https://images.punkapi.com/v2/keg.png',
      abv: 4.5,
      ibu: 60,
      target_fg: 1010,
      target_og: 1044,
      ebc: 20,
      srm: 10,
      ph: 4.4,
      attenuation_level: 75,
      volume: [Object],
      boil_volume: [Object],
      method: [Object],
      ingredients: [Object],
      food_pairing: [Array],
      brewers_tips:
       'The earthy and floral aromas from the hops can be overpowering. Drop a little Cascade in at the end of the boil to lift the profile with a bit of citrus.',
      contributed_by: 'Sam Mason <samjbmason>' } ] ]

// just get some beer!
> client.getBeers({ urlParams: { id: 1 } }).execAsync.then(beer => console.log('Here\'s your beer! ', beer)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].