1. Need environment
Install jdk1.8
Install idea, maven
Official download addressIntelliJ IDEA – the Leading Java and Kotlin IDE
Related configuration reference: http://t.csdn.cn/PxMIQ
Install MySql, navicat
mysql installation reference: http://t.csdn.cn/sJfqu
navicat installation package: link: https://pan.baidu.com/s/1ruZTPZdqF9G29unGoJ_GCQ
extraction code: 0lnd
Install redis
Install nodeJs
Download link: Download | Node.js Chinese website
Installation tutorial: http://t.csdn.cn/vkbNo
Create a new folder under the nodejs folder node_global
and create a new folder undernode_cache
.node_global
node_modules
Enter two lines of commands under cmd to set global files and cache files.
npm config set prefix "D:\Node.js\node_global"
npm config set cache "D:\Node.js\node_cache"
Create system environment variable NODE_PATH-->D:\Node.js
Add environment variables under path -->%NODE_PATH% and %NODE_PATH%\node_global
Install cnpm, yarn
cnpm installation: npm install -g cnpm --registry=https://registry.npm.taobao.org
yarn installation: npm install -g yarn --registry=https://registry.npm.taobao.org
Error reported:
Solution: http://t.csdn.cn/M4Yym
If it still cannot be solved, just run the cmd command line as an administrator.
After successfully installing yarn, cnpm, and pnpm using npm, they can be found in the path D:\Node.js\node_global\node_modules:
Install yarn
Download link: Installation | Yarn Chinese documentation
Install pnpm, serve
2. Pull the code
后端:git clone https://gitee.com/jeecg/jeecg-boot.git
前端:git clone https://gitee.com/jeecg/jeecgboot-vue3.git
3. Start the backend
Initialize the database (requires mysql5.7+)
Execute the Sql script: jeecg-boot/db/jeecgboot-mysql-5.7.sql
script function: automatically create the libraryjeecg-boot
and initialize the data.
Modify project configuration (database, redis, etc.)
配置文件: jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml
-
a. Database configuration (connection and account password)
-
b. Redis configuration (configure redis host and port)
Start project & visit
After the above configuration is completed, find the class
jeecg-system-start/src/main/java/org/jeecg/JeecgSystemApplication.java
Right click to execute startup;
By
http://localhost:8080/jeecg-boot/doc.html
accessing the swagger address of the background.
4. Start the front end
Execute command to download dependencies
Execute a command pnpm i
or execute a commandyarn install
Start the front-end project
Execute the command pnpm serve
to start the project.
If you see the following log, the startup is successful.
By http://localhost:3100
accessing the front-end project ,
the default account password is: admin/123456