Git Product home page Git Product logo

vue2.0-jsapi's Introduction

vue2.0-jsAPI

(上传保留)
前端:vue_front里面的是前端代码,这是一个基于vue2.0的项目,前端使用的是一个开源项目(vue-admin-template)的基础版本,文件夹里有单独的一个文档可以看,也可以去原项目所在的地址直接看开发文档
https://github.com/PanJiaChen/vue-admin-template.git

后端:在api_server文件夹里,也是使用js开发的,说实在的,挺难用的,总的来说基本只实现对数据库的连接,也就是在登陆,或者保存数据的时候向数据库查询或插入数据,但是都已经有接入数据库的后端了,导出excel的功能居然写在前端;

数据库配置文件在api_server/db里,很简单,只有数据库类型,用户密码和库名

依赖环境:node 14 和 npm 6
这两个环境都比较旧,因为前端使用的原项目本身就很旧了,经过实际验证可以知道,不使用这两个环境基本是会报错的
备注nvm:很好用的一个node版本管理工具,可以安装多个node版本,切换使用,可以避免环境问题,在本次实际应用中起到很不错的效果,如果真有闲心能回头再看这个项目,可以用一用;
前后端安装依赖:npm install
前端运行:npm run dev
后端运行:node app.js

根目录下有数据库备份文件,还原到mysql里就行
同时记录一个,后端接入Mysql可能会发生的错误,node-mysql模块的版本问题,这个模块在接入mysql的时候可能会报一个连接错误,
这是因为mysql8.0的默认加密方式不匹配,需要修改mysql的加密方式,修改倒是不难,网上一搜就有,这个项目用起来的难度,都比得上再写一个了,不知道原作者怎么写出来的

vue2.0-jsapi's People

Contributors

fei-link avatar

Watchers

 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.