C++-based blog system
Important knowledge points
- Simple web server design capabilities
- C/C++ operation MySQL database
- Database Design
- Restful style API
- The use of json and jsoncpp
- Strengthen the understanding of HTTP protocol
- The use and principle of cpp-httplib
- Regular expression
- Use of Postman tools
- Use of boost
- Front-end page development methods and skills (free template + bootstrap + Vue.js)
- Use Editor.md Markdown editor
- The basic ideas and methods of software testing
Overall structure:
Blog server
- Ability to add, delete, modify and check the management of blogs
- Ability to add, delete, check and modify tags
Blog client
- Title list page
- Blog content display page
- Blog management page
- Blog content edit page
About data storage and interaction
- The server stores data in markdown format
- The front-end submits the markdown document content to the server through the editor.md tool, or parses the markdown returned by the server as the front-end page content.
Start designing the blog system:
One, database design
CentOS 7 install MariaDB
database installation and configuration through yum !
Reference: https://zhuanlan.zhihu.com/p/49046496
2. Create a blog information table + tag table
{ add insert delete delete change update check select }