Talk about the project development life cycle

Source: Internet
Author: User

Project Development Life cycle:

One: Software project development model

Spiral Development Mode:

Spiral development model suitable for the situation of uncertain pre-project requirements: For each module, a development, analysis, design, coding, testing, on-line.

Benefits Keyi can effectively reduce the risk of software, I try to make the product as far as possible to meet customer needs:

Waterfall Mode:

Waterfall Mode: First of all the modules of the project requirements analysis, when the analysis is over, only to enter the next stage of the project, that is, design, coding, testing, on-line.

Benefits: Easier to carry out project control, and project quality controls! The quality of the project is very high

The design to the military is a waterfall. Development

Waterfall development is relatively high; the top helix is suitable for enterprise project management

A development: From start to finish, how to complete the process:

Two modes:

A: Yes. All the requirements are finished, functional model design (developed together)

2: A module, design and development of a module

If a big project: One billion: One year to finish: in the early stages of the project, the customer will not

All requirements: You can use the second type; But the main functions have been decided:

In the Setup Project management module:

Requirements Analysis:

We choose the spiral development model: The database should be developed first

Requirements Analysis:

Software Engineer: What is the path to understanding the requirements?

1: A requirement document, requirement Analysis: Documents are text

When there is a problem to communicate

2: Project manager will design to project team

Development experience: Technology

Project Manager: Control + Demand Analysis

The project manager communicates with the customer:

3: System prototype of the project: (Art designer)

4. Communication with qualified (customer)

The development of the time must first look backstage

If later change the industry: are all in the same industry I mean hotel development software, later also recruit hotel development software

Requirements Analysis:

Now the first item: restaurant net; system function

1: Table Module

2: Vegetable category Module (cuisine)

3: Vegetable information (dishes)

4; Order

Detailed analysis:

1: Backstage entry of the ashamed, to be in the background home display, and just not scheduled

2: Background entry of the type of dishes, on the front page display

3. Background passers-by food information, displayed at the front desk

4: After the order is generated by the foreground, the order details are displayed in the background

Database design:

1:5 Sheets:

1: Table Management (table)

2: Category Table of the dishes

3: Variety of dishes table

4: Order form (basic information of order)

5: Order schedule (mainly of vegetable varieties)

One dining table multiple dishes: order included order

Use integers best not booler type he represents gender

Now the database is built: Key 5 tables

First Step key table

CREATE table Dinnertable (--Table primary key

ID INT PRIMARY KEY auto_increment,----table name
TableName VARCHAR (20),
Tablestatus INT DEFAULT 0,---table status, 0, idle, 1 scheduled
OrderDate DATETIME
);

Second key table

CREATE TABLE FoodType (
ID INT PRIMARY Key auto_increment,--category primary key
TypeName VARCHAR (20)--category name
);

The third table for the third table of the list of menu items below is the child table

CREATE TABLE Food (
ID INT PRIMARY Key auto_increment,--primary key
Foodname VARCHAR (20),--Dish name
foodtype_id INT,----belongs to the cuisine, foreign key field
Price DOUBLE,-----prices
Mprice DOUBLE,---member Price
Remark VARCHAR (200),--Introduction
IMG VARCHAR (100)--image
);

Fourth table order form (order basic information)

CREATE TABLE Orders (
ID INT PRIMARY Key auto_increment,-----PRIMARY key
table_id INT,-------foreign key, table number
OrderDate datetime,--Date of order
Totalprice DOUBLE,---Order total amount required for all dishes

Orderstatus INT DEFAULT 0----order status; 0; no checkout, 1 checkout

 );

---5: Order schedule (mainly for vegetable varieties)
CREATE TABLE OrderDetail (
ID INT PRIMARY Key auto_increment,--primary key
OrderId INT,--foreign key; The primary key of the order table is introduced.
food_id INT,--foreign key; Reference is the primary key of the menu information table
Foodcount INT--the number of dishes

);

--the relationship between the added menu and the food category
ALTER TABLE Food ADD CONSTRAINT fk_food_foodtype_id);
--Order Details: Relationship to the order form
ALTER TABLE orderdetail ADD CONSTRAINT orderdetail_order_id FOREIGN KEY (Order ID) REFERENCES FoodType (ID);
--Order Details: The relationship with the food information
ALTER TABLE orderdetail ADD CONSTRAINT orderdetail_food_id FOREIGN KEY (food_id) REFERENCES food (ID);

---Order Details: The relationship with the food information is written in the database.

ALTER TABLE orderdetail ADD CONSTRAINT orderdetail_food_id FOREIGN KEY (food_id) REFERENCES food (ID);

--order form: relationship with Table table

ALTER TABLE orders ADD CONSTRAINT order_table_id FOREIGN KEY (table_id) REFERENCES dinnertable (ID); The above is the complete database design is now the system design; Finally, the coding design 2-1: The front and back office to operate the background points, left and right page to distinguish: If you want to directly access the background in the JSP link to the address

Talk about the project development life cycle

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.