cvf/storefront-api

Headless Commerce & Marketplace Extension for Fleetbase

Maintainers

๐Ÿ‘ carvach

Package info

github.com/adminCarVachTech/cvf-storefront

pkg:composer/cvf/storefront-api

Statistics

Installs: 23

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2024-06-10 12:27 UTC

MIT 81e44d4fd833cd387ae543352d37d6e90baab96b

This package is not auto-updated.

Last update: 2026-06-23 21:25:52 UTC


README

๐Ÿ‘ Image

Open-source Headless Commerce & Marketplace Extension for Fleetbase

Overview

This monorepo contains both the frontend and backend components of the Storefront 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 v4.8 or above
  • Ember CLI v4.8 or above
  • Node.js v18 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 fleetbase/core-api
composer require fleetbase/fleetops-api
composer require fleetbase/storefront-api

Frontend

Install the Ember.js Engine/Addon:

pnpm install @fleetbase/storefront-engine

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

Contributing

See the Contributing Guide for details on how to contribute to this project.

License

This project is licensed under the MIT License.