vue run
1.0.0
This is a tool that supports
Vue
andElement
component libraries to run online.
You can use this tool to run some small demos without setting up an environment. Just paste the code and it can be executed. Supports switching between Vue version and Element version.
Project preview
yarn install
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 build -t vue-run .
docker run -i -t -p 5000:80 vue-run
You can access it by visiting http://localhost:5000