GithubHelp home page GithubHelp logo

huangshengbo / microfront-end-single-spa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from justwiner/microfront-end-single-spa

0.0 1.0 0.0 636 KB

利用single-spa搭建的一个微前端架构,其中各个小型应用具有独立部署、独立运行、允许存在独立仓储的特性。由portal项目实现各个应用的组合

JavaScript 99.78% HTML 0.09% CSS 0.01% Vue 0.12%

microfront-end-single-spa's Introduction

microfront-end-single-spa

利用single-spa搭建的一个微前端架构,其中各个小型应用具有独立部署、独立运行、允许存在独立仓储的特性。由portal项目实现各个应用的组合

主要技术

  1. single-spa
  2. systemJs

项目结构

  1. menu项目,开发框架react
  2. portal项目,组件调度、路由分发
  3. project1项目,开发框架react
  4. project2项目,开发框架vue,由vue-cli3脚手架生成

运行步骤

  1. 开启公共依赖模块的服务,我的公共依赖模块在portal项目下common-deps-static文件夹中,只需要在这个文件夹下开启服务即可,可以通过http-server插件,端口设置为8000,并且设置跨域--cors
  2. portal、menu、project1项目下,分别执行命令npm run start
  3. project2项目下,执行命令npm run serve
  4. chrome中打开页面:http://localhost:8233/即可

microfront-end-single-spa's People

Contributors

justwiner avatar

Watchers

 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.