GithubHelp home page GithubHelp logo

imgd / elm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from paninix/elm

0.0 1.0 0.0 161 KB

基于vuejs+koa2+mysql的高仿饿了么移动APP

JavaScript 45.22% TSQL 16.36% HTML 14.54% Vue 3.44% CSS 20.44%

elm's Introduction

注意:

  • 我的服务器内存有限,反应时间可能有些延迟。
  • 请不要往我服务器内插入恶意代码。
  • 不要往我服务器传送过多的数据。
  • 用户名:admin;密码:1111

技术栈

  • 前端部分 vuejs,vuex,axios,element-ui,webpack
  • 后台部分 koa2,mysql

安装和运行

  • 后台部分 安装依赖 npm install node index 成功执行!

  • 前端部分 安装依赖 npm install npm run dev 成功执行!

写的不好,欢迎star和fork。

项目重构

  • 第一次重构(2018.4.21) 将axios操作抽离成单独的app.js文件 elm1
  • 第二次重构(2018.7.8) 将axios操作封装成类继承形式 elm2
  • 第三次重构(2019.4.14) 将axios操作封装成配置表形式 elm3

项目结构

```
├── README.md           
├── build              // 构建服务和webpack配置
├── config             // 项目不同环境的配置
├── index.html         // 项目入口文件
├── package.json       // 项目配置文件
│
├── server             // 项目后台
│   ├── api            // api操作
│   ├── db             // 与数据库交互
│   ├── routes          // 后台路由
│   ├── index.js       // 后台入口文件
│   └── package.json   // 项目配置文件
|   
│
├── src                // 生产目录
│   └── axios           // axios操作
|         ├──index.js   // axios配置表
|         ├──base       // axios公共部分
|         |    ├──index.js    //公共方法
|         |    └──setting.js  //状态码
|         └── user
|               ├──cache.js     //请求函数
|               └──config.js    //配置信息
|
|   ├── base           //vue模板
│   ├── components     // 组件
|   |     ├──common    //公共组件
|   |     └──admin
|   |          ├── ui.vue             // 输出组件
|   |          ├── component.html     // template
|   |          ├── component.js       // script
|   |          └── component.less     // style
|   |  
│   ├── router         // 路由
│   ├── store          // vuex状态管理器
│	  ├── App.vue        // 首页
│   └── main.js        // Webpack 预编译入口
│     
```

elm's People

Contributors

paninix avatar

Watchers

James Cloos 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.