From 0 to 1: Community Forum Mini Program Development Notes

background

Forum Mini Program: Provides users with a platform for social interaction, allowing users to share experiences, exchange opinions, solve problems, and promote interaction and communication among community members. Users can post on various topics on the forum mini program, share their knowledge, experience and insights, and help other users obtain information and solve problems. Users can expand their knowledge, learn from other people's experiences and insights, and promote personal growth and progress by participating in forum discussions.

Functional planning

Management side:

  • Column management: Provide first-level classification and second-level classification management
  • Post management: Conveniently enter, modify, and review posts, and provide an image and text editor that is suitable for mini program layout.
  • Home page carousel: You can set a home page carousel, supporting links to local posts or external articles.

user terminal:

  • Column display: display by first-level and second-level classification
  • User posts: You can publish your own posts by category and modify them at any time.
  • Post display: post retrieval, post likes, comments, sharing (posters, cards),
  • Post ranking list: You can rank posts according to comments, number of views, number of likes, and number of collections
  • User rankings: Users can be ranked according to the number of posts, posting time, number of fans, number of followers, and number of views.
  • Personal homepage: View the personal information of each post author (avatar, gender, signature), post list, number of posts, number of fans, number of followers, number of views
  • Personal Center: You can modify your personal information, view your posts, people you follow, likes, browsing, collections, comment records, etc.

Outline design

Database Design

ProductModel.DB_STRUCTURE = { _pid: 'string|true', PRODUCT_ID: 'string|true',

PRODUCT_TITLE: 'string|false|comment=标题',
PRODUCT_STATUS: 'int|true|default=1|comment=状态 0/1,99=待审核,98=待修改',

PRODUCT_USER_ID: 'string|false|comment=用户ID',
PRODUCT_METHOD: 'int|true|default=0|comment=发布方式 0=管理员 1=用户',

PRODUCT_CATE_ID: 'array|true|comment=分类编号',
PRODUCT_CATE_NAME: 'array|true|comment=分类冗余',

PRODUCT_GOOD: 'int|true|default=0',

PRODUCT_ORDER: 'int|true|default=9999',
PRODUCT_VOUCH: 'int|true|default=0',

PRODUCT_COMMENT_CNT: 'int|true|default=0',

PRODUCT_QR: 'string|false',
PRODUCT_VIEW_CNT: 'int|true|default=0|comment=访问次数',

PRODUCT_COMMENT_CNT: 'int|true|default=0|comment=评论数',
PRODUCT_FAV_CNT: 'int|true|default=0|comment=收藏数',

PRODUCT_LIKE_CNT: 'int|true|default=0|comment=点赞数',
PRODUCT_LIKE_LIST: 'array|true|default=[]|comment=点赞记录',

PRODUCT_FORMS: 'array|true|default=[]',
PRODUCT_OBJ: 'object|true|default={}',
PRODUCT_PIC: 'array|true|default=[]|comment=图片集',

PRODUCT_ADD_TIME: 'int|true',
PRODUCT_EDIT_TIME: 'int|true',
PRODUCT_ADD_IP: 'string|false',
PRODUCT_EDIT_IP: 'string|false',

}; Cate1Model.DB_STRUCTURE = { _pid: 'string|true', CATE1_ID: 'string|true',

CATE1_ORDER: 'int|true|default=9999',
CATE1_VOUCH: 'int|true|default=0',

CATE1_TITLE: 'string|false|comment=标题',
CATE1_STATUS: 'int|true|default=1|comment=状态 0/1',

CATE1_CNT: 'int|true|default=0',

CATE1_FORMS: 'array|true|default=[]',
CATE1_OBJ: 'object|true|default={}',

CATE1_ADD_TIME: 'int|true',
CATE1_EDIT_TIME: 'int|true',
CATE1_ADD_IP: 'string|false',
CATE1_EDIT_IP: 'string|false',

};

UI design

Management system design

git download

git download

Linus took it upon himself to prevent kernel developers from replacing tabs with spaces. His father is one of the few leaders who can write code, his second son is the director of the open source technology department, and his youngest son is an open source core contributor. Robin Li: Natural language will become a new universal programming language. The open source model will fall further and further behind Huawei: It will take 1 year to fully migrate 5,000 commonly used mobile applications to Hongmeng. Java is the language most prone to third-party vulnerabilities. Rich text editor Quill 2.0 has been released with features, reliability and developers. The experience has been greatly improved. Ma Huateng and Zhou Hongyi shook hands to "eliminate grudges." Meta Llama 3 is officially released. Although the open source of Laoxiangji is not the code, the reasons behind it are very heart-warming. Google announced a large-scale restructuring
{{o.name}}
{{m.name}}

Guess you like

Origin my.oschina.net/u/3808186/blog/11054097