Skip to content

T-Club/vue-run

 
 

Repository files navigation

vue-run

这是一个支持VueElement组件库在线运行的工具

可以利用本工具运行一些小demo, 无需搭环境, 将代码粘贴过来, 即可执行。支持Vue版本和Element版本的切换。

项目预览

项目安装

yarn install

修改nginx

server {
  listen 80 default_server;
  listen [::]:80 default_server ipv6only=on;

  root /usr/share/nginx/html;
  index index.html index.htm;

  # Make site accessible from http://localhost/
  server_name localhost;

  location / {
    # First attempt to serve request as file, then
    # as directory, then fall back to displaying a 404.
    try_files $uri $uri/ =404;
    # Uncomment to enable naxsi on this location
    # include /etc/nginx/naxsi.rules
  }

  location ~ ^/vue/ {
    proxy_pass  https://cdn.bootcss.com;
  }
  location ~ ^/element-ui/ {
    proxy_pass  https://cdn.bootcss.com;
  }
}

项目运行

yarn run serve

项目编译

yarn run build

本地docker运行

docker build -t vue-run .

docker run -i -t -p 5000:80 vue-run

访问http://localhost:5000就可以访问了

Releases

No releases published

Packages

No packages published

Languages

  • Vue 48.6%
  • CSS 27.5%
  • TypeScript 15.0%
  • HTML 5.8%
  • Makefile 1.7%
  • Dockerfile 0.8%
  • JavaScript 0.6%