Project Address: Student Information Management System
Front-end part (Vue)
First run terminal as administrator
Otherwise, some errors will be reported when running the command
1. First download node.js
2. Open and install node.js
3. The installation is complete, open the console, enter node -v to check whether the installation is complete, if the version number is displayed, the installation is successful
4. Enter the Taobao mirror address:
npm install -g cnpm -registry-https://registry.npm.taobao.org
5. Install vue-cli:
cnpm install -g @vue/cli
After installing the scaffolding, you can maintain other people's projects
Running this command may report an error:
Solution:
1. Run powershell as an administrator
2. Execute in powershell: get-ExecutionPolicy, showing Restricted (indicating that the status is prohibited).
3. Execute in powershell: set-ExecutionPolicy RemoteSigned, select Y or A.
4. Execute in powershell: get-ExecutionPolicy, display RemoteSigned.Then continue to run the command
6. Enter the project directory
First, open the project in the compiler. If you already have the following two folders, delete them first. This is generated after running other people’s compilers, so don’t be afraid to delete them.
Enter the project from the command line: student_client
Type in terminal:
npm install
或者
npm i
npm load project dependency reportnpm WARN deprecatedquestion
Solution:
Upgrade npm version
npm install -g npm -- 默认升级为最新版本
Continue to report an error:
The node.js version is too high to install certain dependencies
Solution:
Reduce node and npm versions – I uninstalled and reinstalled, here I drop to
Note that the node and npm versions must match
Then continue to execute the command
7. Inputnpm run devornpm run serverun project
The difference between npm run serve or npm run dev in the npm operation of the Vue project
Find the package.json file in the project, check the "script" object, and see whether it is serve or dev in the script
Run successfully:
If an exception is thrown when npm run serve: error:0308010C
Input
set NODE_OPTIONS=--openssl-legacy-provider
can run successfully,
the main reason is that the version is not compatible
Then enter the address in the browser:
Backend part (SpringBoot)
Open student_server with IDEA, run
If the error is similar to this: java: warning: source release 11 requires target release 11
Solution:
1. Click File->Settings->Build, Execution, Deployment->java Compiler in the upper left corner, and then find the project that reported the error (if it is not displayed, click +), and select version 8 in the drop-down box on the right
2. Click Project Structure -> Module in the upper left corner, find the project that reported the error, select 8 in the source, and then select your own jdk version in the dependency, mine is jdk1.8, and finally click Apply to confirm.
3. In addition to changing the above two places, the following sentence should be added to the configuration file pom.xml
<properties>
<java.version>8</java.version>
</properties>
4. Rerun the project successfully.
Then you can enter the system
Happy New Year's Eve