My first web development framework and the first web development framework

Source: Internet
Author: User

My first web development framework and the first web development framework

How can I become an architect? What are the requirements?

As a code farmer, I am eager to become a qualified web architect. It took me four hours to complete a simple web development framework last night, in the spirit of open source, I hope to share with more experts. Due to the shortcomings of the first framework establishment, I hope the experts in the blog Park will give some advice! At the same time, I hope a great god will accept me as an apprentice. I am willing to follow and learn !!!

Architecture Description: ASP. NET MVC5 (webapi) + EntityFramewrok6.1 + SQL Server (Other) + Redis + Unity

First

1. Controllers is used for controller and webapi in mvc

 

2. Data is mainly used for EntityFramework Data Access

3. Interface domain Interface Definition

4. Service Interface implementation, used in controller and webapi

5. Needless to say, the Model is only a domain entity.

6. Framework cache, which controls the definition of generic operation tools such as container packaging, webapi, wcf call, And Linq extension.

7. No need to mention WebApp.

If you don't want to write more, download the source code!

Since only 10 MB of attachments can be uploaded at a time, I compress them into five compressed files. After downloading these five compressed files together, decompress one of them!

Http://files.cnblogs.com/zpc870921/EFMvcFrameApp.part05.rar

Http://files.cnblogs.com/zpc870921/EFMvcFrameApp.part04.rar

Http://files.cnblogs.com/zpc870921/EFMvcFrameApp.part03.rar

Http://files.cnblogs.com/zpc870921/EFMvcFrameApp.part02.rar

Http://files.cnblogs.com/zpc870921/EFMvcFrameApp.part01.rar

 


What is the web development and web development framework?

What you said before is correct. Web development, in fact, involves a large amount of meaning. I think all web-based services that can interact with each other can be called web development. For example, all jsp, asp, and php that can support web development. There are only differences in development languages. What we have in common is to better satisfy people's friendly access to the internet.
Currently, the mainstream development framework, for java, should be the SSH framework, namely struts + hibernate + spring. In addition, some are based on asp or php. Of course, there are some special effects or effects in the entire web framework. It should also be regarded as a framework. Such as css, js, and jquery. One-sided word, hope it can help you. Common progress

Overview of Web development framework Technologies

How to choose a Web development framework (abstract) the development framework is always a matter of benevolence and wisdom. In particular, there are a large number of development frameworks on the Web layer, and each has its own characteristics, such as Struts, WebWork, Spring MVC, Tapestry, JSF, WebPage3.0 ...... And so on.
Next, let's take a look at why the Web development framework is used.

I. inevitability of using the framework
Framework. It is actually a semi-finished product of an application. It extracts some common things from different applications and makes them into a semi-finished product program. Such a semi-finished product is a so-called program framework.
Software systems have become very complex today, especially on-server software, involving too many knowledge, content, and problems. Using someone else's mature framework in some ways is equivalent to letting someone else do some basic work for you. You only need to concentrate on completing the business logic design of the system. In this way, you do not need to start from scratch, but can start to build on this basis.
The biggest benefit of using the framework: reduce repetitive development workload, shorten development time, and reduce development costs. At the same time, there are other benefits, such as making the program design more reasonable and program running more stable. For these reasons, some suitable development frameworks are usually used in development to help develop application systems quickly and efficiently.
I learned the inevitability of using the framework. Let's look at how to choose it. Of course, our topics are concentrated on the development framework at the Web layer. Before talking about this, let's take a look at what we need to do in Web development:

Ii. Web LAYER DEVELOPMENT
In J2EE development, layering is the basic idea. The three-layer or multi-layer architecture has long been deeply rooted in the hearts of the people. Here we will focus on the Web layer, let's see what the Web layer development has done:
1: Data Display
The Web layer needs to obtain the data to be presented from the logic layer, and then display the data on the page in a reasonable way.
2: Human-Computer Interaction
You need to input data from the interface and click the button on the interface to trigger the event. The standard event-driven model is then exchanged with the background to display a new interface.
3: collect data and call the logical layer interface
When the Web layer receives a user event request, it must call the corresponding logic layer interface for processing. The Web layer does not have any logic processing. To call the logical layer interface, you need to pass parameters. In this case, you need to collect the data that you enter on the interface and then organize the data into the data encapsulation form (usually ValueObject) required by the logical layer interface ).
4: Re-display the page based on the data in the logic layer
After the logic layer completes processing, data or information needs to be returned to the interface. In this case, the Web layer selects the appropriate page based on the returned value and then displays the data or information.

From the above, we can see that the main work of Web layer development is focused on the presentation, that is, the graphical user interface. This part is the window for users to intuitively feel the application, and it is also the place where users have the most requirements, and its forms are also the most abundant.

Step 3: Web LAYER DEVELOPMENT
Next we will summarize the general steps of Web layer development (that is, the work that developers need to do ):
Note: The Web Layer Development discussed here does not use any development framework.

1: write Html pages. What data needs to be displayed on the interface?
2: The specific manifestation of each data, such as: some need to be shown as drop-down lists, and some need to be represented as single-choice buttons.
3: The logical layout of the interface representation. The so-called logical layout means that some data representations should be placed in front, some should be placed in the back; some should be put on top, and some should be placed below. For example, for a business that requires a leave request, the start time and end time of the leave request are clearly at the beginning of the end time. However, the artist is responsible for the appearance of the final page. Generally, the artist cannot change the logical layout of the interface.
4: After completing the previous three steps, the page's presentation will look like a general one. Below We Need To Do Functional Development. The first is the source of these expressed values, for example, where the values displayed in the drop-down list come from. There are many sources of values, such as databases, fixed values, intermediate results of a disconnected program, transmitted from the previous page, and so on. Of course, the typical value is from the database.
OK, OK... the remaining full text>
 

Related Article

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.