Code Monkey home page Code Monkey logo

vue2-manage's Introduction

About

此项目是 vue + element-ui 构建的后台管理系统,是一个标准的线上项目架构。

说明

开发环境 nodejs 8.x以上

如有问题请直接在 Issues 中提,或者您发现问题并有非常好的解决方案,欢迎 PR 👍

传送门:项目地址,该项目自带api提供数据,便于学习开发,可自行组装数据开发接口,顺带学习nodejs。

技术栈

vue-v2.6.11 + vuex-v3.1.3 + vue-router-v3.1.6 + webpack-v4.42.1 + ES6/7 + less + element-ui-v2.13.0 + babel-v7.9.0 https://cn.vuejs.org/v2/guide/syntax.html https://element.eleme.cn/#/zh-CN/component/layout

项目运行

git clone https://github.com/yuedun/vue2-manage

cd vue2-manage  

npm i

npm run dev (访问本地后台系统)


访问: http://localhost:8002

线上部署

npm run build

NGINX代理配置

# Virtual Host configuration for example.com
#
# You can move that to a different file under sites-available/ and symlink that
# to sites-enabled/ to enable it.
#
server {
    listen 80;
    listen [::]:80;

    server_name domain;

    root /xx/vue2-manage/manage;

    location / {
        try_files $uri $uri/ /index.html;
      	proxy_http_version 1.1;
       	proxy_set_header Upgrade $http_upgrade;
       	proxy_set_header Connection 'upgrade';
       	proxy_set_header Host $host;
	proxy_cache_bypass $http_upgrade;
        proxy_set_header X-NginX-Proxy true;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        expires 300;
    }

    location ^~ /api/ {
        add_header 'Access-Control-Allow-Origin' '*';
        proxy_pass http://localhost:8900/;
    }  
}

效果演示

(可在后台管理系统添加商铺,食品等数据,并在前端地址查看效果)

查看效果请戳这里

部分截图

License

GPL

vue2-manage's People

Contributors

bailicangdu avatar yuedun avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jiangshuai

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.