Fix link back to the main readme

This commit is contained in:
rodelgc 2023-04-19 16:56:13 +08:00
parent 7cba955617
commit a9bac53282
1 changed files with 14 additions and 8 deletions

View File

@ -5,22 +5,26 @@ You can set up a local development environment on Windows with [Windows Subsyste
## Pre-requisites
You should have the following already set up on your Windows computer:
- **Docker Desktop for Windows** - https://docs.docker.com/docker-for-windows/install/
- **WSL 2** - https://docs.microsoft.com/en-us/windows/wsl/install
- **Set the default Linux distribution** - https://docs.microsoft.com/en-us/windows/wsl/basic-commands#set-default-linux-distribution
- **Docker Desktop for Windows** - https://docs.docker.com/docker-for-windows/install/
- **WSL 2** - https://docs.microsoft.com/en-us/windows/wsl/install
- **Set the default Linux distribution** - https://docs.microsoft.com/en-us/windows/wsl/basic-commands#set-default-linux-distribution
## Setup Steps
Update and upgrade packages.
```bash
sudo apt update -y && sudo apt upgrade -y
```
In order for Composer commands to work later on, you have to install the following:
- PHP
- Composer
- `php-xml`
- `php-mbstring`
- PHP
- Composer
- `php-xml`
- `php-mbstring`
```bash
sudo apt install php-cli unzip -y
@ -44,15 +48,17 @@ sudo apt install php-mbstring -y
```
For Playwright to run in headless mode you'll need to install additional packages:
```bash
sudo apt install -y ca-certificates fonts-liberation gconf-service libappindicator1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils
```
Add your username to the `docker` group to avoid having to type `sudo` when you run Docker commands.
```bash
sudo usermod -aG docker ${YOUR_USERNAME}
su - ${YOUR_USERNAME}
```
At this point, you're now ready to proceed with the steps in [Prep work for running tests](./README.md#prep-work-for-running-tests).
At this point, you're now ready to proceed with the steps in [WooCommerce Playwright End to End Tests](./README.md).