Giter Site home page Giter Site logo

jira-dev-tool's Introduction

2021 必修:React + React Hook + TS 最佳实践仿 Jira 企业级项目

专属开发者工具

安装与使用:

npx imooc-jira-tool
import { loadDevTools } from "jira-dev-tool";

loadDevTools(() => {
  ReactDOM.render(
    <React.StrictMode>
      <AppProviders>
        <App />
      </AppProviders>
    </React.StrictMode>,
    document.getElementById("root")
  );
});

两大功能介绍

1. 分布式后端服务

传统教学项目后端服务的两大问题:

  1. 服务脆弱,请求次数有限,不稳定,如果down掉学员就没法使用了
  2. 学员对后端数据库的控制有限,比如没法轻易地重置数据库

这个开发者工具用 MSWService Worker 为原理实现了"分布式后端"

即:

  1. 所有请求被Service Worker代理 rU5enx.png
  2. 后端逻辑处理后,以localStorage为数据库进行增删改查操作 rU558J.png

这样每个同学的浏览器上都安装了一个独立的后端服务和数据库,再也不受任何中心化服务的影响 点击'清空数据库'便可以重置后端服务 rUIdqx.png

2. HTTP 请求精准控制

项目的健壮性被很多教学项目忽视,而作为一个最佳实践的项目,健壮性是一个被重点关注的点

这个开发者工具可以精准地控制 HTTP请求的时间、失败概率、失败规则

rUHjc4.png

jira-dev-tool's People

Contributors

nolancode124 avatar sindu12jun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jira-dev-tool's Issues

npx imooc-jira-tool is not working

the first problem is not compatible with react 17.x.x, it shows must use react 16.x,

the second problem is, it is hang out when install

npx imooc-jira-tool is not working

the first problem is not compatible with react 17.x.x, it shows must use react 16.x,

the second problem is, it is hang out when install by npx imooc-jira-tool

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.