WeChat ordering system based on SpringBoot
Note: Do not download the Community version of IDEA, download the Ultimate version. The MySQL database I use is version 5.7.21. The table creation statement of this project seems to be incompatible with version 5.6. It is recommended to install versions 5.7 and above. Recommend a relatively easy-to-use MySQL client: Navicat for MySQL. Redis client graphical interface: Redis Desktop Manager. It is best to change the Maven remote warehouse to the Alibaba Cloud warehouse. The modification method is introduced online and is very simple.
git clone https://github.com/sqmax/springboot-project.git
to clone the project locally.http://127.0.0.1:8080/sell/seller/product/list
to come to our merchant management system interface on the seller side. The effect is as follows: git clone https://github.com/sqmax/vuejs-project.git
to download the front-end project, where the project root path (vuejs-project ) is the compiled front-end code. server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root F:vuejs-projectdist; #前端资源路径
index index.html index.htm;
}
location /sell/ {
proxy_pass http://127.0.0.1:8080/sell/;
}
F:vuejs-projectdist;
above should be the dist directory of the front-end project you just git cloned.
nginx -s reload
to restart the nginx server.http://127.0.0.1/#/order/
, a blank interface will appear. Press F2 to open the browser's developer tools, and enter document.cookie='openid=abc123'
in the browser's console. Add cookies to this domain name. Visit again: http://127.0.0.1
, then you can access the front-end interface. as follows: 6. For accessing the WeChat public account on the mobile phone, an intranet penetration tool must be used. Since the IP address cannot be accessed directly in WeChat, a domain name must be purchased, which also involves quite complicated WeChat debugging. It will not be introduced here. You can use the postman tool to simulate WeChat ordering. For the access interface, see the class starting with Buyer under the controller package.
7. If you want to check the access effect of WeChat client, you can visit this link on WeChat client: http://sell.springboot.cn/
. (Note that this is a project demonstration launched by senior brother) If you use a computer to access, you can first visit: http://sell.springboot.cn/#/order/; Then, press F12
to open the browser's developer tools and click on the console , enter in the console: document.cookie='openid=abc123'
; Then visit again: http://sell.springboot.cn, you can see the front-end effect.
About IDEA. For those who use Eclipse, you can try IDEA. This is my first time using IDEA for this project, and it feels very smart and easy to use. You can check out this repository: https://github.com/judasn/IntelliJ-IDEA-Tutorial, which is a very good tutorial on how to use IDEA.
About the front end. I have not studied the front-end vue.js project. I just used it for demonstration. Those who are interested can go to MOOC.com to learn.
Spring Boot Enterprise WeChat Ordering System
Vue.js 2.5 + cube-ui Reconstruct the Ele.me App