Guazi second-hand car analysis system based on Django + Vuejs separation of front and back ends (original, with source code)

Guazi second-hand car analysis system based on Django + Vuejs separation of front and back ends## The title
specifically states that this is a learning project that I recently participated in full-stack practice development. The first phase of the assignment is the only CSDN in the whole CSDN, the only Gitee, and the framework has been The crawler can be expanded into other types by itself. The actual rendering is at the end. This project can only be used for learning and cannot be used for illegal use. The source code is at the end of the text. If there is an environment construction problem, you can contact for help:

  • The front end of the project uses vuejs (vue-admin-template framework)
  • The project backend uses django (django restfult framework)
  • Front-end chart uses echart
  • Roles distinguish management and ordinary users
  • The crawler uses the basic request
  • The database uses the mysql
    project structure:
Insert picture description here

"Software Requirements Specification"

1 Introduction

1.1 Purpose

The purpose of this document is to introduce in detail the requirements contained in the Guazi Second-hand Car Analysis System, so that customers can confirm the exact requirements of the product and developers can design according to their needs. The following description will combine text descriptions, flowcharts, interface prototypes and class diagrams, etc. To describe the function, performance, user interface, operating environment, external interface and various responses of Guazi used car analysis system.
The intended readers of this document are customers, project managers, developers, and other competitors and unrelated personnel related to the project.

1.2 Scope

The product introduced in this document is Guazi Used Car Analysis System, and the main users of this program are college students. The purpose is to allow users to keep accounts anytime and anywhere through the program, as well as a regular reminder function, so that users can fully understand the direction of their money.

1.3 Definitions, abbreviations and abbreviations

Insert picture description here

1.4 Reference documents

1.5 Overview

Chapter 2 of this document will describe the general factors that affect the product and its requirements, and provide the background of the requirements for readers to understand easily. In Chapter 3, the requirements will be defined in detail, and the acceptance verification standards will be given in Chapter 4. Chapter 5 reserves the needs that need to be supplemented later.
This document is compiled by PM and developers after interviews with users.

2. General description

2.1 Product description

With the improvement of the quality of life, many families have the idea of ​​replacing vehicles. As a result, the second-hand car market is becoming more and more popular. In order to find a suitable second-hand car, it takes a lot of time and energy. For second-hand car market researchers, there is currently no convenient analysis tool on the market to grasp market trends. In order to solve the above problems, it is urgent to develop an analysis system that can meet the above requirements. Therefore, based on the largest used car online trading platform Guazi used car, a visual analysis platform has been developed.

2.2 Product features

Figure 1 System function

Insert picture description here

The main functions of Guazi Used Car Analysis System are:

Insert picture description here

2.3 User characteristics

Insert picture description here

2.4 Constraints

Insert picture description here

2.5 Assumptions and dependencies

Hypothesis:
·Users urgently need a used car analysis system.
·The development team all master the relevant knowledge needed to develop the system.
· Sufficient development time.

Dependent aspects:
User information depends on the user information database.
·The operation depends on the program application.

3. Specific needs

3.1 Software function list

List all the functions of the software in tabular form, and display the hierarchical relationship of requirement items in indentation mode.
Software function table

Insert picture description here

3.2.2 Function description

3.2.2.1 Registration page
·Enter key fields to register
3.2.2.2 Login page
·Enter account and password to log in
3.2.2.3 Homepage
·Display personal account information
·Carousel chart displays the latest three vehicle information
3.2.2.4 Analysis-Chart
· View collected data
· View visual analysis data
3.2.2.5 Analysis-source data
· View collected source data
· Set filter conditions to filter data
3.2.2.6 Collection management
· Start collection
· Stop collection
3.2.2.7 Personal settings-Reset password
·Enter the old password and the new password to reset
·Stop collecting
3.2.2.8 Personal settings-Personal information
·Modify key field information
3.2.2.9 Management background-Vehicle information management
· Can add, delete, modify and check vehicles
3.2.2.10 Management background- User management
, users can be added, deleted, modified, and checked
. Users can be configured with roles and permissions

3.2.4 Interface list

3.2.4.1 Interface list
Software interface list

Insert picture description here

3.2.4.2 Interface design
REQ-SI-001 Register interface
name: register
access: /api/register
input:
{"sex":"男","birthday":"2020-02-05","phone":"15914061345","username":"cccc","city":"北京","password":"123456","password2":"123456"}
output:
{"data":"","message":"注册成功!","code":200}

REQ-SI-002 login interface
name: login
access: /api/login
input:
{"username":"15914063350","password":"111111"}
output:
{"code":200,"data":{"token":"xxxxxxx","username":"15914063350"}, "message":""}

REQ-SI-003 User personal information interface
name: info
access: api/user/info
input:
none
output:
{"code":200,"data":{"user_name":"麻花小子","city":"北京","sex":"男","birthday":"2020-02-06","name":"15914063350","roles":"普通用户","avatar":"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif"},"message":"获取成功"}
REQ-SI-004 carousel picture interface
name: pics
access: /api/pics
input: none
output:
{"code":200,"data":[{"xx":xxx}],"msg":"查询成功"}
 REQ-SI-005 Logout Interface
Name: logout
Access: /api/logout
Input: None
Output:
{"code":200,"data":None,"msg":"登出成功"}

REQ-SI-006 Vehicle statistics interface for each price of the vehicle
Name: price
visit: /api/statistics/price
Input: None
Output:
{"code":200,"data":[{"name":"0~5万","value":6188},{"name":"6~10万","value":11721},{"name":"11~15万","value":6356},{"name":"16~20万","value":3651},{"name":"20~万","value":8013}],"message":"获取各价位车辆统计数据成功!"}
REQ-SI-007 Vehicle manufacturer vehicle statistics interface
Name: vendor
visit: /api/statistics/vendor
Input: None
Output:
{"code":200,"data":[{"vendor":"北京现代","count":1334},{"vendor":"上汽大众","count":2859}],"message":"获取厂商车辆统计数据成功!"}
REQ-SI-008 Vehicle City Vehicle Distribution Statistics Interface
Name: registration_area
Access: /api/statistics/registration_area
Input: None
Output:
{"code":200,"data":[{"registration_area":"郑州","count":1986},{"registration_area":"成都","count":1490}],"message":"获取车辆区域分析数据成功!"}

REQ-SI-009 Interface for Statistics of Vehicle Exhaust National Standard Proportion
Name: national_standard
Access: /api/statistics/national_standard
Input: None
Output:
{"code":200,"data":[{"name":"国四","value":12753},{"name":"国三","value":405},{"name":"国五","value":23937},{"name":"国六","value":4383},{"name":"国二","value":2}],"message":"获取各国标数据车辆统计数据成功!"}

REQ-SI-010 Vehicle Age Percentage Statistics Interface
Name: age
Access: /api/statistics/age
Input: None
Output:
{"code":200,"data":[{"name":"0~3年","value":7446},{"name":"3~5年","value":16373},{"name":"6~10年","value":19157},{"name":"10~15年","value":5804},{"name":"15~年","value":0}],"message":"获取各年龄车统计数据成功!"}
REQ-SI-011 Vehicle Mileage Price Distribution Statistics Interface
Name: mileage_price
Access: /api/statistics /mileage_price
Input: None
Output:
{"code":200,"data":[(11, 9),(3, 4.5)],"message":"获取里程价格车辆数据成功!"}

REQ-SI-012 Vehicle Age Price Distribution Interface
Name: tag_price
Access: /api/statistics/tage_price
Input: None
Output:
{"code":200,"data":[(11, 9),(3, 4.5)],"message":"获取年限价格车辆数据成功!"}

REQ-SI-013 The average price distribution interface of each manufacturer's vehicle
Name: vendor_average_price
Visit: /api/statistics/tvendor_average_price
Input: None
Output:
{"code":200,"data":[{"vendor":"北京现代","avg_price":7.959550224887529},{"vendor":"上汽大众","avg_price":9.623263378803777}],"message":"获取厂商平均价格数据统计成功!"}
REQ-SI-014 The detailed vehicle data interface of the city where you are located
Name: City
visit: /api/statistics /city
input: your city
output:
{"code":200,"data":[{"vendor":"北京现代","avg_price":7.959550224887529},{"vendor":"上汽大众","avg_price":9.623263378803777}],"message":"获取城市车辆数据成功!!"}

REQ-SI-015 crawler start interface
name: crawler
access: /api/crawler
input: none
output:
{"code":200,"data":[],"message":"启动采集数据成功!!"}

REQ-SI-016 crawler stop interface
name: crawler
access: /api/crawler
input: none
output:
{"code":200,"data":[],"message":"停止数据采集成功!"}

REQ-SI-017 password reset interface
name: modify
access: /api/modify
input:
{"userName":"","birthday":"","sex":"","city":"","password":"123456","newPassword":"111111","newPassword2":"111111"}
output:
{"code":200,"data":null,"message":"密码修改成功!"}

REQ-SI-018 personal information modification interface
name: modify
access: /api/modify
input:
{"phone":"15914063350","userName":"麻花小子","birthday":"2020-02-06","sex":"男","city":"北京","password":"","newPassword":"","newPassword2":""}
output:
{"code":200,"data":null,"message":"个人信息修改成功!"}

3.3 Performance requirements

3.3.1 Operating environment

Category Standard configuration computer hardware CPU: Intel(R) Dual CPU T2390@a1.86GHZ RAM: 8GB software Operating system: Windows 10 software: 1, Python v3.82, Mysql v6.8

3.3.2 Stability requirements

This program is aimed at products developed by Internet users. The frequency of using the program is multiple times a day. The stability of the program is very important. It is necessary to ensure that the program can be accessed stably within 7*24 hours. Data collection must be performed stably and normally. The final result analysis is valid.

4. Acceptance verification standards

4.1 Acceptance checklist

·If there is no special instruction, the same icon has the same function. For example, the function of the icon button (return) is to return to the previous page. If the same icon has different functions, it will be pointed out separately.
· All control names or interface titles may change accordingly.

Insert picture description here

Effect picture

Insert picture description here


Insert picture description here


Insert picture description here


Insert picture description here


Insert picture description here

download link