GithubHelp home page GithubHelp logo

kazekage605 / alibabacloud-console-os Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aliyun/alibabacloud-alfa

0.0 0.0 0.0 6.91 MB

alibabacloud-console-os

Home Page: https://aliyun.github.io/alibabacloud-console-os/

License: MIT License

JavaScript 28.62% TypeScript 65.10% HTML 2.98% CSS 2.25% Vue 1.05%

alibabacloud-console-os's Introduction

alibabacloud-console-os

NPM version

介绍

console-os 是在阿里云控制台体系中孵化🐣的微前端方案, 定位是面向企业级的微前端体系化解决方案。

特性

  • 📦 开箱即用,无代码侵入
  • 📎 完善的微前端体系支撑
  • 🕋 完整前端容器沙箱
  • ♋️ 多实例兼容

使用文档

子应用

import { mount }  from '@alicloud/console-os-react-portal';
import App from './app';

const appID = 'aliyun-console-slb'

export default mount(
  (props) => <App/>,
  document.getElementById('app'),
  appID
);

宿主应用

import Application from '@alicloud/console-os-react-app'

const appConfigUrl = 'https://dev.g.alicdn.com/aliyun-next/endpoint/0.1.0/aliyun-console-slb.manifest.json';

const Home =  () => (
  <Application
    manifest={appConfigUrl}
    id="aliyun-console-slb"
  />
);
export default Home;

其他框架使用

React

see Console OS React Portal

Vue

see Console OS Vue Portal

Try Example

克隆仓库到本地

git clone https://github.com/aliyun/alibabacloud-console-os.git

安装子应用

$ npm run install:example

运行 React 子应用

$ cd example/SubApp/React
$ npm run start
# you will visit app on http://localhost:8080/

运行 Vue 子应用

$ cd example/SubApp/Vue
$ npm run serve
# you will visit app on http://localhost:8081/

运行 宿主 应用

$ cd example/HostApp/ReactHost
$ npm run start
# you will visit app on http://localhost:3000/

你可以在 http://localhost:3000/ 访问到当前加载的两个子应用。

Try Live Demo

React

Angular

贡献指南

参见贡献指南

alibabacloud-console-os's People

Contributors

alibaba-oss avatar boelroy avatar csr632 avatar dependabot[bot] avatar royidoodle avatar seekhow avatar yozman 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.