CN109358855A - A kind of front end analogue data agile development method and electronic equipment for programming - Google Patents
A kind of front end analogue data agile development method and electronic equipment for programming Download PDFInfo
- Publication number
- CN109358855A CN109358855A CN201811061801.3A CN201811061801A CN109358855A CN 109358855 A CN109358855 A CN 109358855A CN 201811061801 A CN201811061801 A CN 201811061801A CN 109358855 A CN109358855 A CN 109358855A
- Authority
- CN
- China
- Prior art keywords
- programming
- data
- agile development
- environment
- analogue data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments for testing or debugging software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Stored Programmes (AREA)
Abstract
The present invention discloses a kind of front end analogue data agile development method and electronic equipment for programming, wherein method comprising steps of A, use module packing device building front end develop environment;B, it enables heat to update, and compiles mapped file packet automatically;C, start background server and proxy plug-ins;D, resource path is arranged by front-end server;E, when background server receives network request, analysis request method operates virtual data according to the requesting method and obtains processing result;F, forward end server returns to processing result.The analog service that front end is built through the invention utmostly simulates true server environment, can carry out various operations to virtual data, secondary development cost is reduced, in local background server, uses proxy mode, request is forwarded, the Cross-domain problem locally developed is solved.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of front end analogue data agile development sides for programming
Method and electronic equipment.
Background technique
Agile Software Development is current software development model all the fashion, and in the industry cycle gradually promoting.Different from tradition
Software development model, the value and method that agile development mode has oneself distinct.Wherein, quick part of detecting is also the same as previous
Software testing flow it is different.This puts forward new requirements tester, brings new challenge.
And in existing agile development technology, if being difficult to when the non-output of back office interface using simple analogue data format
True environment is simulated, secondary development cost is caused.And the simple back-end data analog service voluntarily built can be met in request
To Cross-domain problem, data can not be requested.
Therefore, the existing technology needs to be improved and developed.
Summary of the invention
In view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of front end analogue data for programming
Agile development method and electronic equipment, it is intended to solve agile development process simulation data in the prior art and be difficult to simulate true ring
The problems such as border, meeting can not request data.
Technical scheme is as follows:
A kind of front end analogue data agile development method for programming, wherein comprising steps of
A, environment is developed using module packing device building front end;
B, it enables heat to update, and compiles mapped file packet automatically;
C, start background server and proxy plug-ins;
D, resource path is arranged by front-end server;
E, when background server receives network request, analysis request method operates virtual according to the requesting method
Data obtain processing result;
F, forward end server returns to processing result.
The front end analogue data agile development method for programming, wherein the step D is specifically included:
D1, the environmental variance for obtaining current environment;
D2, corresponding configuration file is read according to environmental variance;
D3, resource type is obtained according to configuration file, and resource path is arranged according to resource type.
The front end analogue data agile development method for programming, wherein when the resource type is script money
When source, resource path is routed path.
The front end analogue data agile development method for programming, wherein when the resource type is static money
When source, resource path is virtual directory path.
The front end analogue data agile development method for programming, wherein in the step E, the requesting party
Method includes reading data, modification data, increasing data and delete data.
The front end analogue data agile development method for programming, wherein the step F is specifically included:
F1, processing result is forwarded to the corresponding address url using proxy mode;
F2, processing result is issued to by front-end server by the address url.
The front end analogue data agile development method for programming, wherein the current environment includes exploitation ring
Border, test environment and production environment.
A kind of electronic equipment, wherein include:
Processor is adapted for carrying out each instruction, and
Equipment is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor:
Environment is developed using module packing device building front end;
It enables heat to update, and compiles mapped file packet automatically;
Start background server and proxy plug-ins;
By front-end server, resource path is set;
When background server receives network request, analysis request method operates virtual number according to the requesting method
According to obtaining processing result;
Forward end server returns to processing result.
A kind of non-volatile computer readable storage medium storing program for executing, wherein the non-volatile computer readable storage medium storing program for executing is deposited
Computer executable instructions are contained, when which is executed by one or more processors, may make described one
A or multiple processors execute the front end analogue data agile development method for programming.
A kind of computer program product, wherein non-volatile computer is readable to be deposited computer program product including being stored in
Computer program on storage media, computer program include program instruction, when program instruction is executed by processor, make the place
It manages device and executes the front end analogue data agile development method for programming.
The utility model has the advantages that the analog service that front end is built through the invention, utmostly simulates true server environment,
Various operations can be carried out to virtual data, reduce secondary development cost, in local background server, using acting on behalf of mould
Formula is forwarded request, solves the Cross-domain problem locally developed.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the front end analogue data agile development method preferred embodiment for programming of the present invention.
Fig. 2 is the structural block diagram of a kind of electronic equipment preferred embodiment of the present invention.
Specific embodiment
The present invention provides a kind of front end analogue data agile development method and electronic equipment for programming, to make the present invention
Purpose, technical solution and effect it is clearer, clear, the present invention is described in more detail below.It should be appreciated that this place
The specific embodiment of description is only used to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, Fig. 1 is a kind of front end analogue data agile development method preferred embodiment for programming of the present invention
Flow chart, as shown, itself comprising steps of
S1, environment is developed using module packing device building front end;
S2, heat update is enabled, and compiles mapped file packet automatically;
S3, starting background server and proxy plug-ins;
S4, resource path is arranged by front-end server;
S5, when background server receives network request, analysis request method operates virtual according to the requesting method
Data obtain processing result;
S6, forward end server return to processing result.
The analog service that front end is built through the invention utmostly simulates true server environment, can be to void
Quasi- data carry out various operations, reduce secondary development cost, in local background server, using proxy mode, to request
It is forwarded, solves the Cross-domain problem locally developed.
In the step S1, environment first is developed using module packing device building front end.
Module packing device, that is, webpack therein, various resources can carry out packing processing as module.
In the step S2, enables heat and update.Enabling the purpose that heat updates can be refreshed automatically when changing code
The page.
In this step, also automatic compiling mapped file packet;By compiling the mapped file packet (map packet), can check
Line number where code facilitates debug, i.e. trace routine is run, and checks system data.
In the step S3, start background server and proxy plug-ins.The present invention is to use generation in background server
Reason mode, is forwarded request, solves the Cross-domain problem locally developed, avoids the case where can not requesting data.
In the step S4, resource path is arranged by front-end server.
Specifically, the step S4 is specifically included:
S41, the environmental variance for obtaining current environment;
S42, corresponding configuration file is read according to environmental variance;
S43, resource type is obtained according to configuration file, and resource path is arranged according to resource type.
In the step S41, webpack configuration file is decoupled.
If it is dev configuration file, then current environment is exploitation environment, if it is prod configuration file, then current environment
It is production environment, if it is test configuration file, then current environment is test environment.
Exploitation environment is used exclusively for the server of exploitation, and configuration is freer, convenient in order to develop debugging, general to open entirely
Portion's error reporting.
Testing environment is usually the configuration for cloning a production environment, and a program is abnormal in test environmental work, then
It can not publish in manufacturing machine.
Production environment refers to what formal offer externally serviced, can generally turn off error reporting, open error log.
In simple terms, exploitation environment is exactly project even in coding stage;And environment then project completion test is tested, modification
The bug stage;Production environment is exactly that logical, commencement of commercial operation has been run on project data front end backstage.
In the step S42, configuration file is read out according to environmental variance.
In the step S43, resource type is obtained according to the result of reading.
Such as the resource type be script resource when, resource path is routed path.Or the resource type is
When static resource, resource path is virtual directory path.
In the step S5, when background server receives network request, analysis request method, according to the request
Method operation virtual data obtains processing result;
Further, the requesting method includes reading data, modification data, increasing data and delete data.
Virtual data therein is analogue data, to be tested.
In the step S6, forward end server returns to processing result.
Specifically, the step S6 is specifically included:
S61, processing result is forwarded to the corresponding address url using proxy mode;
S62, processing result is issued to by front-end server by the address url.
In the step S61, the address url is first analyzed, processing result is forwarded to the corresponding address url.
In the step S62, processing result is issued to by front-end server by the address url, to complete to ask
It asks.
The present invention also provides a kind of electronic equipment 10, as shown in Fig. 2, comprising:
Processor 1110 is adapted for carrying out each instruction, and
Equipment 120 is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor 110:
Environment is developed using module packing device building front end;
It enables heat to update, and compiles mapped file packet automatically;
Start background server and proxy plug-ins;
By front-end server, resource path is set;
When background server receives network request, analysis request method operates virtual number according to the requesting method
According to obtaining processing result;
Forward end server returns to processing result.
The processor 110 can for general processor, digital signal processor (DSP), specific integrated circuit (ASIC),
Field programmable gate array (FPGA), single-chip microcontroller, ARM (Acorn RISC Machine) or other programmable logic device are divided
Any combination of vertical door or transistor logic, discrete hardware component or these components.In addition, processor can also be any
Conventional processors, microprocessor or state machine.Processor also may be implemented as calculating the combination of equipment, for example, DSP and Wei Chu
Manage combination, multi-microprocessor, one or more microprocessors combination DSP core, any other this configuration of device.
It stores equipment 120 and is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software
Program, non-volatile computer executable program and module, such as the front end analogue number for programming in the embodiment of the present invention
According to the corresponding program instruction of agile development method.Processor is stored in the non-volatile software journey in storage equipment by operation
Sequence, instruction and unit, thereby executing the front end analogue data agile development method for programming various function application and
Data processing, i.e. realization above method embodiment.
It has been described in detail in the method for particular technique details in front about above-mentioned electronic equipment 10, so it will not be repeated.
The present invention also provides a kind of non-volatile computer readable storage medium storing program for executing, the non-volatile computer readable storage
Media storage has computer executable instructions, when which is executed by one or more processors, may make
One or more of processors execute the front end analogue data agile development method for programming.
The present invention also provides a kind of computer program product, computer program product includes being stored in non-volatile computer
Computer program on readable storage medium storing program for executing, computer program include program instruction, when program instruction is executed by processor, are made
The processor executes the front end analogue data agile development method for programming.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can
With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention
Protect range.
Claims (10)
1. a kind of front end analogue data agile development method for programming, which is characterized in that comprising steps of
A, environment is developed using module packing device building front end;
B, it enables heat to update, and compiles mapped file packet automatically;
C, start background server and proxy plug-ins;
D, resource path is arranged by front-end server;
E, when background server receives network request, analysis request method operates virtual data according to the requesting method
Obtain processing result;
F, forward end server returns to processing result.
2. the front end analogue data agile development method according to claim 1 for programming, which is characterized in that the step
Rapid D is specifically included:
D1, the environmental variance for obtaining current environment;
D2, corresponding configuration file is read according to environmental variance;
D3, resource type is obtained according to configuration file, and resource path is arranged according to resource type.
3. the front end analogue data agile development method according to claim 2 for programming, which is characterized in that when described
When resource type is script resource, resource path is routed path.
4. the front end analogue data agile development method according to claim 2 for programming, which is characterized in that when described
When resource type is static resource, resource path is virtual directory path.
5. the front end analogue data agile development method according to claim 1 for programming, which is characterized in that the step
In rapid E, the requesting method includes reading data, modification data, increasing data and delete data.
6. the front end analogue data agile development method according to claim 1 for programming, which is characterized in that the step
Rapid F is specifically included:
F1, processing result is forwarded to the corresponding address url using proxy mode;
F2, processing result is issued to by front-end server by the address url.
7. the front end analogue data agile development method according to claim 2 for programming, which is characterized in that described to work as
Preceding environment includes exploitation environment, test environment and production environment.
8. a kind of electronic equipment characterized by comprising
Processor is adapted for carrying out each instruction, and
Equipment is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor:
Environment is developed using module packing device building front end;
It enables heat to update, and compiles mapped file packet automatically;
Start background server and proxy plug-ins;
By front-end server, resource path is set;
When background server receives network request, analysis request method operates virtual data according to the requesting method and obtains
To processing result;
Forward end server returns to processing result.
9. a kind of non-volatile computer readable storage medium storing program for executing, which is characterized in that the non-volatile computer readable storage medium
Matter is stored with computer executable instructions, when which is executed by one or more processors, may make institute
It states one or more processors perform claim and requires the described in any item front end analogue data agile development sides for programming 1-7
Method.
10. a kind of computer program product, which is characterized in that computer program product can including being stored in non-volatile computer
The computer program on storage medium is read, computer program includes program instruction, when program instruction is executed by processor, makes institute
It states processor perform claim and requires the described in any item front end analogue data agile development methods for programming of 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811061801.3A CN109358855A (en) | 2018-09-12 | 2018-09-12 | A kind of front end analogue data agile development method and electronic equipment for programming |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811061801.3A CN109358855A (en) | 2018-09-12 | 2018-09-12 | A kind of front end analogue data agile development method and electronic equipment for programming |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109358855A true CN109358855A (en) | 2019-02-19 |
Family
ID=65350957
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811061801.3A Withdrawn CN109358855A (en) | 2018-09-12 | 2018-09-12 | A kind of front end analogue data agile development method and electronic equipment for programming |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109358855A (en) |
-
2018
- 2018-09-12 CN CN201811061801.3A patent/CN109358855A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108170612B (en) | Automatic testing method and device and server | |
US8055995B2 (en) | System and method of defining a hierarchical datamodel and related computation and instruction rules using spreadsheet like user interface | |
EP2572294B1 (en) | System and method for sql performance assurance services | |
CN108319460B (en) | Method and device for generating application program installation package, electronic equipment and storage medium | |
CN110908641B (en) | Visualization-based stream computing platform, method, device and storage medium | |
CN112270149B (en) | Verification platform automatic integration method and system, electronic equipment and storage medium | |
CN106648556B (en) | Method and device for front-end and back-end integrated development test | |
US9665674B2 (en) | Automating a microarchitecture design exploration environment | |
US20140123114A1 (en) | Framework for integration and execution standardization (fiesta) | |
CN108920496B (en) | Rendering method and device | |
CN113778848A (en) | Test code generation method, device, computer system and medium | |
CN110196809B (en) | Interface testing method and device | |
CN103186463B (en) | Determine the method and system of the test specification of software | |
CN114168565B (en) | Backtracking test method, device and system of business rule model and decision engine | |
CN115705250A (en) | Monitoring stack usage to optimize programs | |
CN113238739A (en) | Plug-in development and data acquisition method, device, electronic equipment and medium | |
CN109491904B (en) | Automatic testing method and device for spark SQL application program | |
Ruprecht et al. | Automatic feature selection in large-scale system-software product lines | |
CN111324332A (en) | Big data task processing method and system, electronic device and storage medium | |
CN109358855A (en) | A kind of front end analogue data agile development method and electronic equipment for programming | |
CN113377648A (en) | Software system diagnosis method and device, electronic equipment and computer readable medium | |
CN114489861A (en) | Target component conversion method and device, electronic equipment and readable storage medium | |
CN113504904A (en) | User-defined function implementation method and device, computer equipment and storage medium | |
CN113220586A (en) | Automatic interface pressure test execution method, device and system | |
Weise et al. | Learning Apache Apex: Real-time Streaming Applications with Apex |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190219 |
|
WW01 | Invention patent application withdrawn after publication |