=== Flo Flex Builder ===
Contributors: Flothemes
Donate link: https://flothemes.com/
Tags: Flothemes builder
Requires at least: 5.0.0
Tested up to: 5.0.0
Version: 1.0
Stable tag: 1.0

## Description:

Plugin adding a visual builder block to the Flothemes layout builder. Works only with themes released after February 1, 2017

# How to Use for Development:

## 0. Cloning the project, fetching submodules (WP plugin and the react-app as a submodule)

```
mkdir flo-flex-builder
cd flo-flex-builder
git clone --recurse-submodules git@git.flosites.com:alexb/flo-flex-builder.git .
```

### 0.1 OPTIONAL. In case you want to add a submodule, you do it this way:

```
git submodule add git@git.flosites.com:alexb/flo-flex-builder-react-app.git ./app-files
```

## 1. On repository updates, make sure there are no updates in submodules:

```
git pull --recurse-submodules
```

## 2. Check Node Version

```
node -v
```

**THE MINIMUM REQUIRED NODE VERSION: 10.0.0**

If you have a lower version and projects running on it, you can install a separate newer node version and switch between versions when necessary via n: https://github.com/tj/n
sudo may be required depending on your system configuration:

```
npm install -g n
n 10
```

The commands above will install and active the necessary Node version.
To switch back to your previous version, type in "n" in the terminal:

```
n

  node/6.14.3
  node/6.10.1
o node/10.0.0
  node/11.10.0
```

## 3. Install dependencies

**make sure the terminal is open in the WordPress plugin root**:

```
npm run flo-install
```

## 5. Start the app:

```
npm start
```

The WordPress plugin can be accessed from http://localhost:3000/link-to-your-wp-installation/ for frontend live reload

## 6. Generating a plugin ZIP file:

```
npm run build
```
