44 lines
1.3 KiB
Markdown
44 lines
1.3 KiB
Markdown
![]() |
# Development environment for MONARC using WSL
|
||
|
|
||
|
[WSL](https://docs.microsoft.com/en-us/windows/wsl/)
|
||
|
is convenient to use in order to setup your development environment on Windows OS.
|
||
|
|
||
|
WSL data can be accessible using ```\\wsl$``` on Windows.
|
||
|
|
||
|
|
||
|
## Prerequisites
|
||
|
|
||
|
* You must be running Windows 10 version 2004 and higher (Build 19041 and higher) or Windows 11.
|
||
|
* Hyper-V Feature turned on [[1]](https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v#enable-hyper-v-using-powershell)
|
||
|
* Virtual Machine Platform and Windows Subsystem for Linux are enabled [[2]](https://docs.microsoft.com/en-us/windows/wsl/troubleshooting#installation-issues)
|
||
|
|
||
|
## Installation of WSL
|
||
|
|
||
|
1. In PowerShell Launch install
|
||
|
```powershell
|
||
|
wsl --install -d Ubuntu
|
||
|
```
|
||
|
2. Create WSL user (WSL shell)
|
||
|
3. Make sure that the Ubuntu distribution is set as default
|
||
|
```powershell
|
||
|
wsl -s Ubuntu
|
||
|
```
|
||
|
|
||
|
## Deployment of the front office
|
||
|
In WLS shell:
|
||
|
|
||
|
```bash
|
||
|
$ cd ~
|
||
|
$ git clone https://github.com/monarc-project/MonarcAppFO
|
||
|
$ cd MonarcAppFO/wsl
|
||
|
$ bash installFO.sh
|
||
|
```
|
||
|
|
||
|
Once the VM will be configured by WSL, go to the address in the browser
|
||
|
```http://localhost/```
|
||
|
|
||
|
The username is *admin@admin.localhost* and the password is *admin*.
|
||
|
|
||
|
The StatsService service will be configured, launched and
|
||
|
accessible on```http://localhost:5005```
|