How to design databases, classify files, and teach new users experience when developing their own blogs.

Source: Internet
Author: User
When I started to write a blog, I found that I couldn't get started. I didn't know how to classify files, nor how to organize code. I hope tech experts can give me some advice. Thank you. :) when I started my blog, I found that I couldn't get started, my files didn't know how to classify them, and I didn't know how to organize code.
I hope tech experts can give me some advice. Thank you :)

Reply content:

When I started to write a blog, I found that I couldn't get started. I didn't know how to classify files, nor how to organize code.
I hope tech experts can give me some advice. Thank you :)

It gives you a simple design, two tables, the post table and the category table.
One of the articles can belong to only one category, and there is no upper or lower level between categories.

Post

  • Id int (10) Auto-incrementing primary key

  • Title varchar (100)

  • Content text

  • Category_id int (10) category ID

  • Create_time int (10) Creation Time, UNIX Timestamp

  • Modify_time int (10)

Category

  • Id int (10) Auto-incrementing primary key

  • Title varchar (100)

  • Create_time int (10)

How can I expand my work in the future? (For example, the classification is transformed into multi-level, the article can support multiple categories, add user support, and add the article status)

Isn't pure html better? An article is a file.

Directly create a page on github, then markdown the article, and git push the release. As a programmer, you deserve such a blog!

Finally paste my own https://lloydzhou.github.io

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.