# Ubuntu on Windows 10 WSL

### Prerequisites

Have WLS installed and enabled with Ubuntu 20.04 installed, see ["Install Ubuntu on Windows 10"](https://ubuntu.com/tutorials/ubuntu-on-windows#1-overview).

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"](https://devblogs.microsoft.com/commandline/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:

```
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 either follow the [Ubuntu/OSX guides](/install-angular-fronted/installation-ubuntu.md) or use node/C# from within Windows and follow the rest of the guide.

### Step 1:

On google type "mySQL windows" or go to this link:

* <https://dev.mysql.com/downloads/windows/installer/5.7.html>&#x20;
* Download and install web community&#x20;

### Step 2:

```
cd %HOMEPATH%

mkdir Documents\workspace microting

cd Documents\workspace\microting

git clone https://github.com/microting/eform-angular-frontend.git
```

### Step 3:

Download and install node.JS 12.x Windows installer <https://nodejs.org/en/download/>&#x20;

![](https://firebasestorage.googleapis.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoZ83r0JmcK11jiNKAD%2Fuploads%2FkrW8hvJMNhafe2Xvhhx1%2Ffile.png?alt=media)

### Step 4:

```
cd %HOMEPATH%

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

npm install
```

### Step 5:

Download install .Net core 2.2 SDK for WINDOWS&#x20;

![](https://firebasestorage.googleapis.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoZ83r0JmcK11jiNKAD%2Fuploads%2FU8ZL4BVYJ4HYb8ToEGhb%2Ffile.png?alt=media)

### Step 6:

```
cd %HOMEPATH%

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

dotnet run --project eFormAPI.Web\eFormAPI.Web.csproj
```

### Step 7:

```
cd %HOMEPATH%

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

npm start
```

### Step 8:

In your webbrowser go to "localhost:4200"

Thereafter fil out the form

OBS! Remember to use the token and customer number you have received from Microting

OBS! If you havent received a token or customer number, then use this standard token and customer number:

* Token: abc1234567890abc1234567890abcdef
* Customer Number: 420

OBS! In "Authentication Type" write "user = root;"&#x20;

OBS! In "Authentication Type" if a password is needed by your mysql write "user=root;password=\*yourpassword\*;"

After filling form Click button "Save"

Look at screenshot below:

![](https://firebasestorage.googleapis.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoZ83r0JmcK11jiNKAD%2Fuploads%2FQAUW1GqjOLHZKiI7gmR7%2Ffile.png?alt=media)

### Step 9:

Login with your Email and Password

Enjoy!

![](https://firebasestorage.googleapis.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoZ83r0JmcK11jiNKAD%2Fuploads%2FUxaYtOmWa69hwzC6iuTP%2Ffile.png?alt=media)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.microting.com/install-angular-fronted/installation-windows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
