Giter Club home page Giter Club logo

biugle / web_base Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 2.0 5.41 MB

前端模板-基于 React + TypeScript + Vite + Antd + Electron + ServiceWorker 实现的模块化前端模板(支持基础版本、多页面模块版本、客户端版本等) https://base.biugle.cn

Home Page: https://web.biugle.cn

License: MIT License

JavaScript 8.55% TypeScript 50.87% Less 28.72% HTML 0.48% CSS 11.39%
electron-app electron-base electron-react react-app web-app web-base web-framework web-pages web-react-components web-template

web_base's Introduction

web_base

前端模板-基于 React + TypeScript + Vite + Antd + Electron + ServiceWorker 实现的模块化前端模板(支持基础版本、多页面模块版本、客户端版本等)

  • main 基础版本 分支
  • modules 模块化版本 分支
  • client 客户端版本 分支
    • (client-modules 支持 ServiceWorker 资源缓存)
    • (client-modules 支持 Electron Http 服务启动)
    • (client-modules 支持 Electron SSL 证书扩展)
    • (client-main 基础客户端版本)
    • (simple-cross-platform 跨平台简单模板 - 网页&Web/Client&Electron/App&Cordova)

微前端模组化(类浏览器模式)客户端模板 - web_mods_base

Technology Stack

  • React 17.x
  • Redux+Toolkit
  • TypeScript
  • Scss/Less
  • Ant Design 5.x
  • Vite 4.x
  • Electron(已支持自动更新、打包、SSL)
  • EsLint
  • Prettier
  • Husky
  • ServiceWorker

DevEnvTips: (node >= 14.20.0)、(npm >= 8.0.0)、(git >= 2.30.0)

Use

git clone https://github.com/biugle/web_base.git

npm i -g js-xcmd
xcmd create-web-base [dir] [branch]
# client-main ===> c-main
# client-modules ===> c-modules
# simple-cross-platform ===> cross

Start

  • npm install or npm run init

husky hooks 安装失败,请检查是否已进行 git init

注意:若代码标红提示,请检查是否因为 npm 版本过低,导致安装了 react18 的声明文件。 可以使用 npm install --no-optional 来避免安装 react18 的声明文件。 或者直接升级 npm 版本,(*∩_∩*) 嘻嘻。

Development

  • npm run dev or npm run dev:exe

Preview

  • npm run preview or npm run preview:exe

Build

  • npm run build or npm run build:exe

Code Check

  • npm run lint

Docs

Others

Buy me a coffee!

Alipay (0.0) WeChat

web_base's People

Contributors

pandaoh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

linecode pandaoh

web_base's Issues

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.