当前位置:网站首页>E-commerce project environment construction
E-commerce project environment construction
2022-06-25 20:13:00 【chinrock】
Write down the construction process , Record the crater points and facilitate the subsequent construction of this type of test environment .
Project selection : Choose the popular framework for e-commerce projects Spring Boot +Vue.js( Fore and aft end separation )
Project brief introduction :https://gitee.com/microapp/linjiashop
Project introduction : Neighborhood shop http://microapp.gitee.io/linjiashop/

For this project , Successful deployment requires a little basic knowledge , for example :
1. Have java Basic knowledge , build jdk Environmental Science
2. understand mysql Build ,mysql Basic knowledge of
3. understand maven Building the basics of packaging
4. understand node.js Environment building , as well as npm Basic packaging commands
After setting up the project environment , You can probably understand the current project structure of the Internet , For software testers, it can improve their understanding of the project structure . This project can also be used to practice functional business testing , The interface test , Interface automation and so on .
The following are the process steps of the whole project setup and deployment :
1. To Github perhaps Gitee Clone the code of the open source project , Recommend to Gitees, Fast
https://gitee.com/microapp/linjiashop#http://microapp.gitee.io/linjiashop/
2. After cloning the project locally , Start building initialization MySQL database , I was in Windows Next .(MySQL It's a simple environment to build , I will not write it in detail here , I'll make it up later )
use navicat Connect to database , Use the following SQL Command to create linjiashop Table and user account and password , And then in linjiashop Execution items under the table doc Under the document database.sql Database script , Generate the tables and data required by the database .
CREATE DATABASE IF NOT EXISTS linjiashop DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
CREATE USER 'linjiashop'@'%' IDENTIFIED BY 'linjiashop191028';
GRANT ALL privileges ON linjiashop.* TO 'linjiashop'@'%';
flush privileges;

3. Import the background server java project , Start the server interface
I use it eclipse,Import Maven Projects, Select the directory of the project .
Because I debug directly locally , Don't need to use maven Pack to build war Packages or jar package , So direct Run Start the background service of the server
linjiashop-admin-api
Pit encountered when starting the service , As a result, the following files need to be modified :
1.WARN: Establishing SSL connection without server’s identity
Need to be in linjiashop-admin-api\src\main\resources In the catalog application-dev.properties,application-prod.properties The data in the configuration file url Add... To the address useSSL=false Parameters 
2. Start backstage api Service default 8082 The port may be occupied , There are two ways
2.1 The process used by this port needs to be terminated , Use the command to see which process , And end it directly
https://jingyan.baidu.com/article/3c48dd34491d47e10be358b8.html
2.2 stay application.properties The configuration file uses another free port 
After the service is successfully started , You can log in to the background api Interface service of swagger, Address :http://localhost:8082/swagger-ui.html
To this step , You can use this project for interface testing .
4. Use node.js Compile the front-end code and start the front-end project , Start the background management front page
Good configuration node After environment , Go straight into linjiashop-admin Use... In the directory npm Command operation compile run , My side is to install cnpm After use cnpm To install
npm install cnpm --registry=https://registry.npm.taobao.org
cnpm install
npm run dev


After successful startup, you can access the entire background management page , You can normally use the functions of the background
http://localhost:9528, User name, password :admin/admin
Later, the project will be packaged and used Jenkins Continuous integration learning .
Today comes to an end .
边栏推荐
- Est - il sûr d'ouvrir un compte avec de nouvelles dettes? Une faible Commission est - elle crédible?
- Connect the local browser to the laboratory server through mobaxterm
- Is it safe to open an online account for new bonds? What should be paid attention to
- The functions in the applet page are better than those in app JS first execution solution
- 打新债网上开户安全吗,需要注意什么
- 2020-11-14-Alexnet
- Redis high availability: do you call this the principle of master-slave architecture data synchronization?
- PHP FPM, workman, spoole, golang simple performance test
- Transunet reading notes
- Avoid material "minefields"! Play super high conversion rate
猜你喜欢

One picture to achieve the selected effect

Hdoj topic 2005 day

Wechat applet swiper simple local picture display appears large blank

<C>. Figure guessing game

Avoid material "minefields"! Play super high conversion rate

Determine whether it is a web page opened on wechat

New features of redis 6.0: take you 100% to master the multithreading model

PAT B1076

Log in to Huawei game with a minor account, and pop up anti addiction prompt after startup

Does redis transaction support acid?
随机推荐
NMS reduction box
DICOM to NII
Single chip microcomputer line selection method to store impression (address range) method + Example
JS get the parameters in the URL link
Modifying routes without refreshing the interface
JS asynchronism (I. asynchronous concept, basic use of web worker)
Redis is a loser. If you don't understand the usage specification, you will spoil it
Is it safe to open an account with a mobile phone? Where can I open an account to buy shares?
2.6 finding the sum of the first n terms of factorial sequence
PAT B1081
PAT B1053
Automatic fitting when the applet reaches the top
Installing or uninstalling VMware could not find the network location
PAT B1056
2.16([Usaco2005 Nov]Ant Counting)
Png to NII
2.14(Knight Moves)
Pta--7-20 exchange minimum and maximum (15 points)
Huawei HMS core launched a new member conversion & retention prediction model
2021-08-25