利用ASP.Net Core进行跨平台社交网站“超微博”的开发

“超微博”分为两部分,一是客户端,为面向用户的程序。用户可以在该端进行注册登录以及各种社交行为,如评论文章,转发文章,点赞文章等。


摘要:

“超微博”是一个B/S程序,即浏览器/服务器程序。该程序基于当前非常流行新浪微博的功能进行需求分析的,结合实际开发时间,适当保留和增加某些必要功能。

该程序采用微软最新的技术-ASP.NET Core MVC进行开发,由于使用语言特性非常优秀的c#以及非常适合Web开发的MVC三层架构,开发过程非常简便和快速!使用开源的企业级数据库MySQL进行数据存储加上非关系型数据库redis的辅助存储,可以使我们的程序有足够的性能。

“超微博”分为两部分,一是客户端,为面向用户的程序。用户可以在该端进行注册登录以及各种社交行为,如评论文章,转发文章,点赞文章等。用户注册时需提供一个合法的邮箱账号,以避免滥注册。二是管理员端,通常讲的后台系统。通过后台系统,我们可以非常明了地查看网站的数据和管理网站的内容。如我们可实时发现哪些用户发布哪些文章,谁添加了什么评论。当用户发布违规内容时,我们还可以通过后台禁用违规的内容,使该内容无法显示,我们甚至可以禁用该用户,使该用户的所有内容都无法显示,且之后无法再使用该账户进行登录!同时,我们还给管理员加了权限,超级管理员具有所有操作权限,而普通管理员无法进行敏感操作等!

“超微博”程序使用的开发技术群,如mysql,.net core,redis等均具备跨平台的功能,所以,我们程序将运行在比较适合做服务器的linux平台上,以更好地提升我们程序的性能,给用户带去更好的使用体验!

我将在Windows10平台上使用便于开发.net core程序的IDE,Visual Studio Community 2017,该IDE且功能强大,是开发.net程序的一大利器!古语讲,君子性非异也,善假于物也。有功能强大的vs相助,整个程序的开发过程将会井然有序,十分快速。

关键词:精简版微博;.Net Core MVC网站;简洁的网络社交;超微博

Social network "SuperMicroBlog" design

- Cross-platform development using .Net Core MVC

" SuperMicroBlog " is a B/S program, ie a browser/server program. The program is based on the needs of the current very popular Sina Weibo needs analysis, combined with the actual development time, properly retain and increase some of the necessary features.

This program uses Microsoft's latest technology - ASP.NET Core MVC for development, due to the use of very excellent language features c # and MVC is very suitable for Web development three-tier architecture, the development process is very simple and fast! Using the open source enterprise-class database MySQL for data storage and the non-relational database Redis secondary storage can give our programs sufficient performance.

"Super Microblog" is pided into two parts. The first is the client, which is a user-oriented program. Users can sign up for login and various social behaviors such as reviewing articles, forwarding articles, and praising articles. The user is required to provide a valid email account when registering to avoid overregistration. The second is the administrator-side, usually speaking background system. Through the back-end system, we can very clearly view the website's data and manage the content of the website. For example, we can discover in real time which users publish which articles and who added any comments. When a user posts offending content, we can also disable offending content in the background so that the content cannot be displayed. We can even disable the user so that the user's content can not be displayed, and can no longer use the account to log on! At the same time, we also added authority to the administrator. The super administrator has all the operation rights, and ordinary administrators can not perform sensitive operations!

The development technology groups used by the “SuperMicroBlog” program, such as mysql, .net core, redis, etc., have cross-platform capabilities. Therefore, our program will run on a Linux platform that is more suitable for servers to better enhance us. The performance of the program gives the user a better experience!