Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devbeno/stage
WordPress react plugin
https://github.com/devbeno/stage
rest-api wordpress-react
Last synced: about 1 month ago
JSON representation
WordPress react plugin
- Host: GitHub
- URL: https://github.com/devbeno/stage
- Owner: devbeno
- Created: 2022-02-16T19:19:56.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-16T19:22:26.000Z (almost 3 years ago)
- Last Synced: 2024-05-10T23:09:54.344Z (8 months ago)
- Topics: rest-api, wordpress-react
- Language: PHP
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Custom react WordPress plugin with rest api support and other features.
REST Api respond with json data.
## Installation
- Git clone:
- `git clone [email protected]:devbaze/stage.git`
- Install javascript dependencies
- `yarn`
- Install php dependencies
- `composer install`## Working With JavaScript
- Build JS/CSS
- `yarn build`
- Start JS/CSS for development
- `yarn start`
- Test changed files
- `yarn test --watch`
- Test all files once
- `yarn test`
- `yarn test --ci`## Working With PHP
### Autoloader
PHP classes should be located in the "php" directory and follow the [PSR-4 standard](https://www.php-fig.org/psr/psr-4/).
The root namespace is `Stage`.
### Tests
- Run unit tests
- `composer test:unit`
- Run WordPress tests
- `composer test:wordpress`
- See local development instructions for how to run with Docker.
- Run unit tests and WordPress tests
- `composer test`### Linter
[PHPCS](https://github.com/squizlabs/PHP_CodeSniffer) is installed for linting and [automatic code fixing](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Fixing-Errors-Automatically).
- Run linter and autofix
- `composer fixes`
- Run linter to identify issues.
- `compose sniffs`