Install Node.js on your computer. Download Link: http://nodejs.cn/download/. Recommend using the latest stable version.
Only do this step at the first time.
Run the following commands in terminal:
git clone https://github.com/WeBankFinTech/Scriptis.git
cd wds-ide
npm install
Commands explanation:
-
Pull remote repository to local:
git clone https://github.com/WeBankFinTech/Scriptis.git
-
Change to the root directory of the project:
cd wds-ide
-
Install all dependencies required for the project:
npm install
Only do this step at the first time.
You need to make some configurations in your code, such as port address of backend server and socket address of backend server in .env.development file in root directory.
//prefix of Backend service
VUE_APP_MN_CONFIG_PREFIX=/api/rest_j/v1/
//prefix of websocket service
VUE_APP_MN_CONFIG_SOCKET=/ws/api/entrance/connect
//server host example http://yourIp:yourPort
SERVER_HOST=
//front end run port default 8080
PORT=
You can refer to the official documentation of vue-cli for detailed explanation. Modes and environment variables
You can run the following command in terminal to build the project:
npm run build
A folder named "dist" would appear in your project's root directory if the command has run successfully and you can directly put "dist" to your static server.
You would need to run the following command in terminal if you want to run project on your local browser and see corresponding effects after making changes to the code.
npm run serve
Try to use Taobao npm mirror:
npm install -g cnpm --registry=https://registry.npm.taobao.org
Next, run the following command instead of npm install:
cnpm install
Note that you can still use npm run serve
and npm run build
to run and build project.