OpenWES Installation Guide
Choose one of the two paths below:
- Docker (recommended) β spin everything up in < 30 s
- Manual install β for full control or local development
π³ Docker Quick-Start (30 s)
Prerequisitesβ
- Docker
- Docker Compose (v2.20+)
One-linerβ
git clone https://github.com/jingsewu/open-wes.git
cd open-wes
HOST_IP=$(hostname -I | awk '{print $1}') docker-compose up -d
Services will be available at:
Service | URL |
---|---|
Web UI | http://localhost |
Nacos | http://localhost:8848/nacos |
π οΈ Manual / Local Install
Prerequisitesβ
- Java 17+ β download
- MySQL 8.0+ β download
- Nacos 2.0+ β download
- Redis 7.0+ β download
- Node.js 18+ β download
βΉοΈ MySQL, Nacos, and Redis must run on the same machine.
You can use the includeddocker-compose.yml
to install them quickly.
1. Clone repositoryβ
git clone https://github.com/jingsewu/open-wes.git
cd open-wes
2. Set up backendβ
2.1 Load Nacos schemaβ
mysql -u root -p nacos_config < initdb.d/nacos_config.sql
2.2 Add host entriesβ
Edit your hosts file:
OS | Path |
---|---|
Linux/macOS | /etc/hosts |
Windows | C:\Windows\System32\drivers\etc\hosts |
Append:
127.0.0.1 nacos.openwes.com
127.0.0.1 redis.openwes.com
127.0.0.1 mysql.openwes.com
2.3 Create application databaseβ
mysql -u root -p -e "CREATE DATABASE openwes;"
2.4 Start servicesβ
From server/server/
run (in separate terminals or via IDE):
java -jar WesApplication.jar
java -jar GatewayApplication.jar
java -jar StationApplication.jar
3. Set up clientβ
3.1 Rename webpack configβ
mv client/build/webpack.config.example.dev.js client/build/webpack.config.dev.js
3.2 Install dependenciesβ
cd client
npm install
3.3 Start clientβ
npm start
Client opens at http://localhost:4001.
Troubleshootingβ
Symptom | Check |
---|---|
Service unreachable | All prerequisites installed and running |
DNS errors | hosts file contains the three aliases |
DB errors | openwes database exists and credentials are correct |
Still stuck?
Open an issue in the GitHub repo.