Installation Windows

Have WLS installed and enabled with Ubuntu 20.04 installed, see "Install Ubuntu on Windows 10".

In Windows create the following folder structure, where it's suitable for you on the C: drive Documents\workspace\microting, in this example we asume it's located like this: C:\Users\yourname\Documents\workspace\microting In order for you to be able to do git clones in Ubuntu onto your C: drive, we have to change the mounting of the C: drive. Open the Ubuntu window and execute, see "Chmod/Chown WSL Improvements":

sudo umount /mnt/c
sudo mount -t drvfs C: /mnt/c -o metadata

When that is done, we can symbolic link the directory structure, to ensure our Linux scripts work as expected in WSL, so execute the following:

cd 
ln -s /mnt/c/Users/yourname/Documents/ Documents

Now we have the following structure in our home directory of the linux user: /home/ubuntu/Documents From now on all sh scripts can be executed inside the Ubuntu terminal and you can follow the guide for "Installation". If you are using Node installed in Windows, you need to follow the guide below, since Node for Windows is not able to run inside Ubuntu as well.

Step 1:

Follow the guide to Download and Install Eform-Angular-Frontend project on "Installation Windows"

Step 2:

%HOMEPATH%

cd Documents\workspace\microting

git clone https://github.com/microting/eform-angular-machinearea-plugin.git

Step 3:

%HOMEPATH%

cd Documents\workspace\microting

Xcopy /X /O /H /K /E /I eform-angular-machinearea-plugin\eform-client\src\app\plugins\modules eform-angular-frontend\eform-client\src\app\plugins\modules

Step 4:

%HOMEPATH%

cd Documents\workspace\microting

mkdir eform-angular-frontend\eFormAPI\Plugins

Step 5:

%HOMEPATH%

Xcopy /X /O /H /K /E /I Documents\workspace\microting\eform-angular-machinearea-plugin\eFormAPI\Plugins Documents\workspace\microting\eform-angular-frontend\eFormAPI\Plugins

Step 6:

Open eFormAPI.sln in your preferred IDE

Step 7:

OBS! After adding existing project. Remember to REBUILD SOLUTION!!!

Step 8:

Open eform-angular-frontend -> eform-client in your preferred Typescript IDE.

Step 9:

Copy this in plugins.routing.ts

{ path: 'outer-inner-resource-pn', loadChildren: () => import('./modules/outer-inner-resource-pn/outer-inner-resource-pn.module').then(m => m.OuterInnerResourcePnModule), canActivate: [AuthGuard] }

Step 10:

OBS! Remember to run eFormAPI.sln before running the command npm start on eform-client!

After running command go to localhost http://localhost:4200/

%HOMEPATH%

cd Documents\workspace\microting\eform-angular-frontend\eform-client

npm start

Step 11:

Go to advanced -> plugins and edit Machine Area Plugin and toggle on "Enabled"

Refresh page.

Enjoy!

Installing a plugin.

Last updated

Was this helpful?