rohit0814 / pallet-api
dev-main
2024-05-27 10:40 UTC
Requires
- php: ^7.4|^8.0
- php-http/guzzle7-adapter: ^1.0
- psr/http-factory-implementation: *
- rohit0814/core-api: dev-main
- rohit0814/fleetops-api: dev-main
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.34.1
- nunomaduro/collision: ^5.11.0|^6.4.0
- pestphp/pest: ^1.22.6
- phpstan/phpstan: ^1.10.38
- symfony/var-dumper: ^5.4.29
This package is auto-updated.
Last update: 2025-03-01 00:42:00 UTC
README
This monorepo contains both the frontend and backend components of the Pallet extension for Fleetbase. The frontend is built using Ember.js and the backend is implemented in PHP.
Requirements
- PHP 7.3.0 or above
- Ember.js v3.24 or above
- Ember CLI v3.24 or above
- Node.js v14 or above
Structure
├── addon
├── app
├── assets
├── translations
├── config
├── node_modules
├── server
│ ├── config
│ ├── data
│ ├── migrations
│ ├── resources
│ ├── src
│ ├── tests
│ └── vendor
├── tests
├── testem.js
├── index.js
├── package.json
├── phpstan.neon.dist
├── phpunit.xml.dist
├── pnpm-lock.yaml
├── ember-cli-build.js
├── composer.json
├── CONTRIBUTING.md
├── LICENSE.md
├── README.md
Installation
Backend
Install the PHP packages using Composer:
composer require rohit0814/core-api composer require rohit0814/fleetops composer require rohit0814/pallet
Frontend
Install the Ember.js Engine/Addon:
pnpm install cv-pallet
Usage
Backend
🧹 Keep a modern codebase with PHP CS Fixer:
composer lint
⚗️ Run static analysis using PHPStan:
composer test:types
✅ Run unit tests using PEST
composer test:unit
🚀 Run the entire test suite:
composer test
Frontend
🧹 Keep a modern codebase with ESLint:
pnpm lint
✅ Run unit tests using Ember/QUnit
pnpm test
pnpm test:ember
pnpm test:ember-compatibility
🚀 Start the Ember Addon/Engine
pnpm start
🔨 Build the Ember Addon/Engine
pnpm build