# Frictionless 
This plugin is for providing an easy implementation of chat and booking widget on ScheduleEngine client sites.

## How to share and install ?
1. Downlown load `/dist/frictionless.zip` 
2. In Wordpress click on `Plugins` from left navigation menu in `wp-admin`.
3. Click on `Add new` and then click on `Upload Plugin`,
4. Select the `frictionless.zip` downloaded in step 1.


## 🐳 Development Environment (acme-root)

- Follow [acme-root](https://github.com/HomeXLabs/acme-root) setup to setup development environment. 
- Clone Frictionless under the `acme-root` similar to `AcmeTheme`

## 💻 Setup

1. Clone this repository and clone [`AcmeTheme`](https://github.com/HomeXLabs/AcmeTheme) and [`acme-content-blocks`](https://github.com/HomeXLabs/acme-content-blocks) in the root of this repository

2. To start the development server:
   ```
   sh scripts/start.sh
   ```

3. To stop the development server:
   ```
   sh scripts/stop.sh
   ```

4. To make edits to either the theme/blocks:
   ```
   # Watches AcmeTheme and acme-content-blocks
   sh scripts/watch/all.sh

   # Watches only AcmeTheme
   sh scripts/watch/theme.sh

   # Watches only acme-content-blocks
   sh scripts/watch/blocks.sh
   ```

5. To build:
   ```
   # Builds AcmeTheme and acme-content-blocks
   sh scripts/build/all.sh

   # Builds only AcmeTheme
   sh scripts/build/theme.sh

   # Builds only acme-content-blocks
   sh scripts/build/blocks.sh
   ```

6. To run tests on Theme:
   ```
   sh scripts/test/theme.sh
   ```

7. Setup a mapping to `localhost` in your hosts file:
   ```
   127.0.0.1 acme.local askgem.local hallerent.local
   ```


**Note:** Please make sure NEVER to commit your `db/acme.sql` file.

# Release 
TBD, need to setup github action to integrate WP SVN repo deployment.