当前位置:网站首页>Mobile mall project operation

Mobile mall project operation

2022-06-25 03:46:00 Stupid in the food

One 、 Installation environment

 Insert picture description here

Two 、 Create database

The databases are imported in turn litemall-db/sql Database file under
It must be executed in sequence, or an error will be reported !
litemall_schema.sql
litemall_table.sql
litemall_data.sql
 Insert picture description here
1、 Don't worry about the contents in the input box , Click the button with the green up arrow
 Insert picture description here
2、idea In the corresponding sql Right click on the file , Click on show in Explorer Can find sql file
 Insert picture description here
3、 perform sql file , Be sure to execute in sequence
 Insert picture description here
thus , Database creation completed

3、 ... and 、 Start the backend

1、 function litemall-all Medium application
 Insert picture description here
2、 Enter... In the browser http://localhost:8080/wx/index/index

 Insert picture description here
The backend is started successfully .

Four 、 Start the background management front end

1、 Open the command line as Administrator
 Insert picture description here

2、 find litemall-admin The local path of

 Insert picture description here
Right click , Click on show in Explorer, Copy path
 Insert picture description here
3、 Enter... In the command line window litemall-admin Catalog , This is my catalog cd D:\ Wechat applet \litemall-master\litemall-master\litemall-admin

 Insert picture description here
4、 Input npm install

 Insert picture description here
It may be very slow or there may be some mistakes , I have already installed it, so I can't demonstrate it. Please Baidu by yourself .

5、 Enter... After installation npm run dev
 Insert picture description here
Wait a minute , Successful launch
 Insert picture description here
 Insert picture description here

5、 ... and 、 Download wechat developer tools , And register

Be careful : Only the structure without pictures will be tested with mobile phones , Because the access path of the back-end server is localhost, I don't know how to change .........
1、 modify wx Module appid,appid You applied for it yourself , If you use my back, you may make mistakes
 Insert picture description here
hold “appid”: “xxxxxx”, Change it to yours appid
![ Insert picture description here ](https://img-blog.csdnimg.cn/ab6eb61c30124b8595ce37c64e73f2b4.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA6I-c6YeM6YO95YK7,size_20,color_FFFFFF,t_70,g_se,x_16

1、 Import the project
 Insert picture description here
2、 Import litemall-wx Of course · The local path , How to get his local path is mentioned above
 Insert picture description here

 Insert picture description here
3、 Use real machine debugging , To use pc Terminal debugging , No pictures are displayed on the mobile phone , I don't know why
 Insert picture description here

6、 ... and 、 Project detail documentation

 Insert picture description here
 Insert picture description here

原网站

版权声明
本文为[Stupid in the food]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202210539053225.html