# Creator LMS

## Requirements
* WordPress >= 5.2
* PHP >= 7.4

### Clone Prerequisites
Clone submodules from GitHub in the packages directory -

Clone e-commerce module from GitHub -
```bash

git clone https://github.com/CODEREXLTD/e-commerce.git
```
Clone automation canvas from GitHub -

```bash
git clone https://github.com/CODEREXLTD/automation-canvas.git
```

## 🔌 Installation

```bash
# install the npm dependencies
npm install

# install the composer dependencies
composer install

# run the app
npm start
```


Create production build files -
```bash
npm run build
```


Create production build files in Zip-
```bash
npm run build:plugin-zip
```


## Unit Test

All the test is written in the tests folder.

### Setup the testing environment
```bash
npm run env:start
```

### 🚥Run Unit testing ##

```bash
npm run test:php
```
