This proxy act as a connector between MII server and local webserver. With the use of this proxy we can consume data from MII in local ui5 application developed in VS code and pull/push code from mii workbench.
npm run pull
to pull the code from mii workbench foldernpm run start
to start the node servernpm run push
to push changes back to mii workbench.
- Install latest version of node js from official website. Make sure you configured path environment variable.
- Install VS code from official website
- Download the project files from later release and extract the files.
- open config.json file and configure your mii user name, mii server details and your ui5 root folder path.
- by default given illumnator and Runner servers end points in the configs file. in case your using any other mii services, include them in the endpoints
- open the terminal in vs code by pressing
ctrl+shift+`
. Make sure your in the root folder(i.e miiproxyserver folder) - run
npm install
in terminal. this will install all the required modules.
- Open the terminal in the vs code and run the cmd
npm run pull
. This will pull the code from your mii server and place in the webapp folder.
- run
npm run start
command in terminal. This will start node server at port 3000. in case this port is already used by any other application or service change the port number in configs.json file. it will ask for your mii server password. enter your password in the terminal and press enter.
- Open any browser and run
http://localhost:3000/index.html
- it will show the your ui5 app. that means your server is correctly configured.
8.Once you done with your changes, run the cmd npn run push
to push your changes back to mii workbench.(before pushing check all the changed file at ./data/modifiedFiles.json file. it containes all the modified files.)