# Installation from Fork

Generally, the installation follows the same flow as the ScandiPWA projects, but instead of installing from template using `create-scandipwa-app` you will need to clone the project from the source.

## Prerequisites

You need to have Git, Node (version >= 12), and Yarn installed

```bash
git --version
node -v # expected: v12.x or v14.x
yarn -v
```

You also need to fork the ScandiPWA repository to be able to create pull requests.

{% hint style="warning" %}

### Make sure you are using Yarn, not NPM

This project is forcing you to use Yarn because it relies on the underlying "workspaces" feature. The NPM will not work properly.
{% endhint %}

## Setting Up

Clone the ScandiPWA repository:

```bash
# clone your fork - replace <your-username> with your github username
git clone https://github.com/<your-username>/scandipwa
cd scandipwa # move into the directory you cloned
```

Install dependencies with `yarn`:

```bash
yarn
```

Now, you can go ahead use ScandiPWA in the following modes:

### Storefront mode

Just enter the ScandiPWA package directory and run the `start` command. Alternatively, use any other available command from [this list](/developing-with-scandi/developer-tools/available-commands.md).

```bash
cd packages/scandipwa # move into the scandipwa package directory
yarn start
```

### Magento mode

You can follow the [original instructions](/getting-started-1/magento-theme-mode.md#3-link-magento-app-with-scandipwa-app) (**starting from step 3**), but make sure to use the package path, not the cloned repository path `packages/scandipwa`.


---

# 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.scandipwa.com/about/contributing/installation-from-fork.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.
