Design and development environment configuration document for an e-commerce website

Source: Internet
Author: User

Development Environment configuration document

1. technologies and tools involved:

+ Ant1.6.2 (project management)
+ Eclipse2.1.2 (code development tool)
+ Junit2.1.1 (Code Testing Tool)
+ Jdk1.4.2 (JVM)
+ Struts1.1 (Web-layer MVC)
+ Ejb2.0 (business layer logic)
+ Hibernate2.1.2 (entity layer)
+ Dao (separated display and logic layer)
+ Jboss3.2.5 (middleware)
+ Log4j1.2.8 (logging)
 
2. Environment configuration method:
 
A. Install jdk1.4.2 and ant1.6.2
Decompress the corresponding compressed package to the corresponding directory, usually use/usr/local/*. Set the corresponding environment variable.

B. Install eclipse2.1.2
Decompress the corresponding compressed package to the corresponding directory, usually using/opt /*.
[Note] eclipse integrates with JUnit

C. Install the Eclipse plug-in
Easystruts0.6.4 (struts supported)
Tanghan1.0 (support for hibernate)
Lomboz2.1.6 (supporting J2EE)
Specific configuration: http://www.bcxy.com/java/eclipsej2ee.htm

D. Install jboss3.2.5
Decompress the corresponding compressed package to the corresponding directory, usually using/usr/local /*.
Specific J2EE configuration: http://www.bcxy.com/server/tomcatjboss.htm
 
E. Configure log4j1.2.8
Specific configuration: http://www.bcxy.com/java/log.htm

 
3. Development Environment Design:

A. Develop the Directory design and write the Project Management Configuration File. (set the directory/opt/bcxy)
 
B. System architecture design.
Analyze the business logic, convert each business operation into a method in EJB, and then refine the EJB method to specific to each operation in Dao.
The entity layer uses hibernate to map to the database. Dao will encapsulate all database table operations.
Strtus is used to break down business processes and display related prompts and error messages.
Conclusion: The presentation layer, business logic layer, and entity layer should be separated as much as possible.
Specifically, the exception is handled, and the exception is encapsulated into the business layer.


4. Code development method:

A. Set the eclipse development project directory to the Project Development Directory (/opt/bcxy)
 
B. Learn how to use eclipse and related plug-ins.
 
 
 
Appendix:

Shopping Cart and purchase process analysis (Part)
A. the shopping cart information is displayed in the list.
+ The cart table is involved and obtained according to the UID. Check whether the table is a registered user.

B. display the payment list
+ The shopping cart information is displayed.

C. Add a shopping cart
+ The cart table is involved. The cart table is obtained based on the UID and commodity ID. Check the inventory first.

D. Check inventory
+

E. Update the shopping cart
+ The cart table is involved and obtained based on the UID, product ID, and quantity. Pay attention to modifying the quantity of multiple products and checking the inventory.

F. Delete the shopping cart
+ The cart table is involved and obtained based on the UID and commodity ID.

G. Clear the shopping cart
 
H. View purchase records
+ The shoplog table and card table are involved, obtained according to the UID, and registered as a registered user or not

Related code is being sorted

If you have any questions, contact me: webmaster@bcxy.com

Ezerg Programming Language
 
 

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.