現在要來說明如何連結mysql,
這裡使用node.js的mysql套件(https://github.com/mysqljs/mysql#introduction),可以簡單進行與mysql進行連線。
如果要更進階的功能,可以改使用。
參考sequelizejs套件
http://expressjs.com/zh-tw/guide/database-integration.html
https://github.com/sequelize/sequelize
https://www.quora.com/What-are-my-options-for-SQL-database-migrations-with-Node-js
https://dotblogs.com.tw/explooosion/2016/07/18/010601
http://docs.sequelizejs.com/
https://segmentfault.com/a/1190000004425970
http://www.pabloanaya.com/blog/building-api-node-js-express-4-mysql/
https://github.com/terlici/base-express
https://www.sitepoint.com/using-node-mysql-javascript-client/
https://codeforgeek.com/2015/01/nodejs-mysql-tutorial/
http://www.cnblogs.com/zhongweiv/p/nodejs_mysql.html
https://dotblogs.com.tw/explooosion/2016/07/18/010601
沒有留言:
張貼留言
留個話吧:)