Git Product home page Git Product logo

xiezhengsu / express-mysql Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 7 KB

网上找了很久的express+mysql写的后台链接数据库的例子,这个算是比较完整的,使用之前可以先读readme的文件,本项目转自推酷博文,http://www.tuicool.com/articles/JfqYN3I ,放在github上只是为了方便查找,希望原文作者不要介意,再次感谢

JavaScript 87.68% CSS 3.07% HTML 9.25%

express-mysql's Introduction

1. 运行工程前要先准备数据库环境

2. 访问地址:
只有更新接口使用的是post,其它接口都是get。所以其它接口可以通过
直接输入URL地址访问

    增加 http://localhost:3000/p/users/addUser?name=XXX&age=12
    删除 http://localhost:3000/p/users/deleteUser?id=3
    查询全部 http://localhost:3000/p/users/queryAll
    ID查询 http://localhost:3000/p/users/query?id=1

    修改 http://localhost:3000/p/users,会返回一个页面。通过表单模拟一个post请求

express-mysql's People

Contributors

xiezhengsu avatar

Stargazers

 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.