Giter Site home page Giter Site logo

open-tag-web's Introduction

OPEN-TAG-WEB

open-tag 前端项目 Overview

基于 Ant Design of Vue 实现的 Ant Design Pro Vue 版 前端UI框架,采用前后端分离方案.

前端技术栈

项目下载和运行

  • 拉取项目代码
git clone https://github.com/xlab2017/open-tag-web.git
cd  open-tag-web
  • 安装依赖
yarn install
  • 开发模式运行
yarn run serve
  • 编译项目
yarn run build
  • Lints and fixes files
yarn run lint

Docker镜像启动前端(单体模式)

# 1.配置host

   127.0.0.1   jeecg-boot-system

# 2.修改前端项目的后台域名
   .env.development
   域名改成: http://localhost:8080/jeecg-boot
  
# 3.进入项目根目录,执行打包命令
 yarn run build

# 4.构建镜像
 docker build -t open-tag-web .

# 5.启动镜像
 docker run --name open-tag-web -p 80:80 -d open-tag-web

# 6.访问前台项目
 http://localhost

其他说明

  • 项目使用的 vue-cli3, 请更新您的 cli

  • 关闭 Eslint (不推荐) 移除 package.jsoneslintConfig 整个节点代码

  • 修改 Ant Design 配色,在文件 vue.config.js 中,其他 less 变量覆盖参考 ant design 官方说明

  css: {
    loaderOptions: {
      less: {
        modifyVars: {
          /* less 变量覆盖,用于自定义 ant design 主题 */

          'primary-color': '#F5222D',
          'link-color': '#F5222D',
          'border-radius-base': '4px',
        },
        javascriptEnabled: true,
      }
    }
  }

附属文档

备注

@vue/cli 升级后,eslint 规则更新了。由于影响到全部 .vue 文件,需要逐个验证。既暂时关闭部分原本不验证的规则,后期维护时,在逐步修正这些 rules

open-tag-web's People

Contributors

bifenglin avatar

Stargazers

逝不等琴生 avatar

Watchers

pupeng avatar Frank Zhao avatar Will Wang avatar  avatar SU Bin 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.