Starter kit
Larasell offers two different kinds of starter kits. One for Storefronts and the other one for extensions so you can modify Larasell to your needs.
Storefront
To make life easier when building a new storefront you can use the starter kit. It's intentionally a minimal implementation that includes a product listing page, product detail page, customer account area, mail templates, a checkout and more.
You can check out a live version at showcase.larasell.dev
The starter kit is an Inertia + React.js storefront. If you'd like to have a different starter kit just send me an email at nils@larasell.dev
Of course, using the starter kit is optional. You are free to build a new store from scratch if you want to. That's completely fine.
Installation
The starter kit is a standalone project that you can install with the Laravel installer, just like any other Laravel starter kit:
1laravel new --using larasell-dev/starter-kit my-storeThis creates a new Laravel application with Larasell installed and a handful of routes, controllers and React.js components for the storefront already in place.
If you prefer to add Larasell to an existing application instead, follow the installation guide.
Start the development server with:
1composer run devInstall with Composer
You can also create the project with Composer:
1composer create-project larasell-dev/starter-kit my-storeYou just created the project, now install the frontend dependencies and build the assets:
1cd my-store
2npm install
3npm run buildYou can also use the composer setup script, which installs the dependencies,
generates an application key, runs the migrations and builds the assets in one go:
1composer run setupLast thing, run the composer dev script to start the local development server.
1composer run devYou can visit the storefront at localhost:8000
Extensions
Extensions allow you to modify the store to fit your needs, without needing to modify the core source code.
Use the template repository to get started.
Copying the template
Run the composer command below, to create a new extension:
1composer create-project larasell-dev/extension-starter-kit my-extensionConfiguring the extension
Next, configure the extension:
1php configure.php --vendor=YOUR_ORG --name=YOUR_EXTENSION_NAMEThe command updates the composer name, the namespace, and more. The script deletes itself once it finishes.
Run these commands to verify the setup:
1composer install
2composer lint
3composer testFinally, run composer serve to start up Larasell:
1composer serveYou now have a running application at localhost:8000/admin