Git Product home page Git Product logo

legomall-admin's Introduction

乐购商城

简单介绍

前端参考开源项目:https://github.com/newbee-ltd/vue3-admin 服务端API则使:koa2+MySQL搭建

参考开源项目使用vue3.0+vite+element-plus

项目搭建

1、使用 npm 进行安装

$ npm init vite-app 项目名
$ cd vant-v3
$ npm install
$ npm run dev

package.json 文件做响应的配置

dependencies

$ npm install vue-router@next    #安装路由模块
$ npm install element-plus       #安装element3.0
$ npm install js-md5             #前端加密工具
$ npm install pushstate-server   #本地启用临时服务器,局域网可访问
$ npm install qs                 #将 url 解析成对象形式
$ npm install wangeditor         #富文本编辑器

devDependencies

$ npm install @babel/core         #将e6代码转成e5 处理兼容
$ npm install @babel/runtime      # 解决babel 不转换新的API问题
$ npm install @rollup/plugin-babel  #
$ npm install @vitejs/plugin-vue   # 支持vue
$ npm install  "@vue/compiler-sfc": "^3.0.5",
    "babel": "^6.23.0",
    "babel-plugin-component": "^1.1.1",
    "babel-plugin-import": "^1.13.3",
    "element-theme-chalk": "^2.15.1",
    "vite": "^2.0.1",
    "vite-babel-plugin": "^0.0.2",
    "vite-plugin-babel-import": "^2.0.2",
    "vite-plugin-imp": "^2.0.4"

scripts 命令更改

    "dev": "vite --mode development",
    "build:beta": "vite build --mode beta",
    "build:release": "vite build --mode release",
    "serve": "vite preview"

2、新建 vite.config.js 增加配置

legomall-admin's People

Contributors

sean-lgt avatar

Watchers

 avatar  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.