Foreword
Beginner vue-cli3 scaffolding, using vue-cli3 + elementUI achieve the results page, node.js build server, MYSQL database with Baidu cloud database, message boards to achieve a small Demo- database read the latest message displayed on page 6, and submit comments to the database. Encounter a variety of problems during learned a lot.
Complete results
Database Table:
Probably Process
The process is quite simple, the page initialization axios.get request to the server, the server queries the database returns a message
click submit, axios.post request that the server (bring input data), the data inserted into the database server, the data verification as to what's being did not write, added later
Source
github
there are two folders is a vue-cli3 project, a node is to write server-side code
Explanation
2019/12/26 cloud database expire, did not intend to renew, too expensive. . . The change of presentation, then the code will sever their computer database to locate a local database.