GithubHelp home page GithubHelp logo

gongyongzhuanghu / wocwin-qiankun Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wocwin/wocwin-qiankun

0.0 0.0 0.0 25.68 MB

基于 qiankun+vue2&vue3+Vite3+vite-plugin-qiankun 技术栈实现的前端微应用架构,实现了主子应用切换,并做了简单的自动化脚本命令,可用一行命令所有子应用的依赖安装、启动以及打包部署。

Home Page: https://wocwin.github.io/wocwin-qiankun/

License: MIT License

Shell 0.08% JavaScript 12.28% TypeScript 5.05% CSS 1.15% HTML 2.10% Vue 75.59% SCSS 3.75%

wocwin-qiankun's Introduction

wocwin-qiankun

最终效果

介绍

基于 qiankun+vue2&vue3+Vite3+vite-plugin-qiankun 技术栈实现的前端微应用架构,实现了主子应用切换(因为没有调用接口,vue2子应用的路由都是静态的,vue3是动态请求的路由),若想实现主子应用之间通信可以参考这一篇博客,并做了简单的自动化脚本命令,可用一行命令所有子应用的依赖安装、启动以及打包部署。

1、主应用介绍

2、wocwin-vue2 子应用介绍

3、wocwin-admin 子应用介绍

技术栈 Vue3.2 + TypeScript + Pinia + Vite4 + Element-Plus + 微前端(qiankun)

项目运行

  1. 项目克隆
// GitHub
git clone https://github.com/wocwin/wocwin-qiankun.git

 // Gitee
git clone https://gitee.com/wocwin/wocwin-qiankun.git
  1. 依赖安装

    npm install
  2. 项目启动

    npm run start
  3. 本地运行

// 1、运行完 npm run start
// 2、打开http://localhost:8100/ 进入主应用
// 3、逐个进入子应用(点击子应用左侧菜单栏logo可以回到主应用)
// 4、主应用的系统管理是所有应用的公共模板(用户、角色、菜单、部门、微前端、字典等)
  1. 若进入主应用点击无法进入子应用(先登录主应用,在浏览器新开页签单独进入各个子应用)

  2. 本地部署到服务器需要配置 NG(可以参考:nginx.conf 文件)

wocwin-qiankun's People

Contributors

wocwin avatar

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.