# EasyPc-admin-system
# Frontend system
**NVM:**
If you have old node or yarn, please uninstall them.
1. `npm uninstall -g yarn`
2. uninstall Node.js
3. [Download nvm](https://github.com/coreybutler/nvm-windows/releases)

4. install nvm with the exe file
4. install node.js:
`nvm install version`

5.open a terminal in Frontend
```
--cd easypc_admin
(please use node10)
--nvm use 10
--npm install
--npm run dev
```

Start java backend and use username:'admin'; password:'admin' to login
# Nginx
* Go to the nginx-1.24.0 folder, double click "nginx.exe"

# Backend system
1. **Open the project**

2. **Maven:**
* Set mvn_resp path in settings.xml



* Go to IDEA Settings. Search Maven and change the 3 paths of Maven

3. **Click these two buttons to install packages, it may takes ~20 minutes.**

4. **Change application.properties for each Service**
* btw,if your resources folder looks like this: 
please mark it's directory as "Resources Root"


* You just need to change the configuration of **url**, **username** and **password**

5. Start OmsApplication, AdminApplication and PmsApplication

* if you have this error, please click "JAR manifest".
```
Error running 'xxx':
Command line is too long. Shorten command line for xxx or also for Application default configuration.
```
# MySQL
the sql script of my database is in [script.sql](https://github.com/ChongHao-Qiu/EasyPc-admin-system/tree/main/develop_env/sql/script.sql)