- Caldera Forms 1.7+
- Easy Digital Downloads
- WordPress 4.9.7+
- PHP 7.0 +
NOTE: Probably only going to work if your REST API is CalderaForms.com's REST API right now.
Requires git and Composer and npm and Yarn
- Clone From Github:
git clone git@github.com:CalderaWP/Caldera-Forms.git
- Install or update everything
bash install.sh
- All JavaScript is developed in
/src
. - JavaScript is compiled to
/build
. - Most of the code lives in @caldera-labs/caldera-pay-js
- All PHP is developed in
/php
-
Run PHP Tests, Lints And Sniffs
composer tests
-
Run Unit Tests:
composer test:unit
*To create a ZIP file without development scripts and tests:
- composer zip
A local development environment is included, and provided. It is used for integration tests. Requires Composer, Docker and Docker Compose.
- Install Local Environment And WordPress "Unit" Test Suite
composer wp:install
You should now have WordPress at http://localhost:8118/
- Username: admin
- password: password
- (re)Start Server: Once server is installed, you can start it again
composer wp:start
- (re)Activate Plugins
composer wp:activate
- (re)Set WordPress permalinks
composer wp:config
Tests will also run in Travis on each push. You should also run tests locally as you develop.
Follow the steps above to create local development environment, then you can use the commands listed in the next section.
A local development environment is included, and provided. It is used for integration tests. Requires Composer, Docker and Docker Compose.
- Install Local Environment And WordPress "Unit" Test Suite
composer wp:install
You should now have WordPress at http://localhost:8888/
- Username: admin
- password: password
- (re)Start Server: Once server is installed, you can start it again
composer wp:start
- (re)Activate Plugins
composer cf:activate
- (re)Set WordPress permalinks
composer wp:config
Tests will also run in Travis on each push. You should also run tests locally as you develop.
Follow the steps above to create local development environment, then you can use the commands listed in the next section.