A modern dashboard for OpenStack - UI
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Gao Hanxiang 5c09f43307 style: Move static_path into skyline_console 3 weeks ago
config feat: Add initial code of skyline-console 2 months ago
docs Merge "docs: Add en test docs" 3 weeks ago
skyline_console style: Move static_path into skyline_console 2 weeks ago
src fix: Fix folder name 1 month ago
test feat: Add initial code of skyline-console 2 months ago
tools/git_config feat: Add initial code of skyline-console 2 months ago
.babelrc feat: Add initial code of skyline-console 2 months ago
.eslintignore feat: Add initial code of skyline-console 2 months ago
.eslintrc feat: Add initial code of skyline-console 2 months ago
.gitignore docs: Add Chinese documents 1 month ago
.gitreview Added .gitreview 3 months ago
.prettierignore docs: Add Chinese documents 1 month ago
.prettierrc feat: Add initial code of skyline-console 2 months ago
.zuul.yaml Add Zuul support for new repository 3 months ago
Gruntfile.js feat: Add initial code of skyline-console 2 months ago
LICENSE feat: Add initial code of skyline-console 2 months ago
Makefile style: Move static_path into skyline_console 2 weeks ago
README.md Fix README 1 month ago
cypress.json feat: Add initial code of skyline-console 2 months ago
jest.config.js feat: Add initial code of skyline-console 2 months ago
jsconfig.json feat: Add initial code of skyline-console 2 months ago
package.json style: Move static_path into skyline_console 2 weeks ago
poetry.lock feat: Add initial code of skyline-console 2 months ago
poetry.toml style: Move static_path into skyline_console 2 weeks ago
pyproject.toml feat: Add initial code of skyline-console 2 months ago
yarn.lock feat: Add initial code of skyline-console 2 months ago

README.md

使用说明

简体中文 | English

环境依赖

  • node: lts/erbium (v12.*)
  • yarn: 1.22.4 +

本地环境搭建

以 CentOS 为例

  • 安装 nvm (nodejs 版本管理工具)

    wget -P /root/ --tries=10 --retry-connrefused --waitretry=60 --no-dns-cache --no-cache  https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh
    bash /root/install.sh
    . /root/.nvm/nvm.sh
    
  • 安装 nodejs

    NODE_VERSION=erbium
    nvm install --lts=$NODE_VERSION
    nvm alias default lts/$NODE_VERSION
    nvm use default
    
  • 验证 nodejs 和 npm 版本

    node -v
    # v12.*.*
    npm -v
    # 6.*.*
    
  • 安装 yarn

    npm install -g yarn
    
  • 安装项目依赖

    在项目根目录下,package.json同级。

    yarn install
    

    等待安装完成即可。

开发使用方法

在项目根目录下,package.json同级。

  • yarn run mock: 使用rap2工具 mock 接口
  • yarn run dev: 使用实际接口,需要将webpack.dev.js文件第 47 行的 "http://pre.xxx.com" 修改为实际地址
  • yarn run build: 构建打包,可将生成的 dist 目录的内容交给后端