Git Product home page Git Product logo

livewire-starter-kit's Introduction

Lunar

Starter Kit

This repository is provided as a reference to learn how to use Lunar Laravel E-Commerce package. This example is a classic e-commerce store.

Warning This application is purely an example of how you can implement Lunar headless e-commerce for Laravel. It is not production ready or complete.

Installation

For full installation instructions please visit https://docs.lunarphp.io/core/starter-kits.html

livewire-starter-kit's People

Contributors

alecritson avatar aslam97 avatar cwfranklin avatar dependabot[bot] avatar glennjacobs avatar markmead avatar rubenvanerk avatar sazzadh88 avatar shuvroroy avatar stylecibot avatar wychoong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

livewire-starter-kit's Issues

demo error

Hello,
(sorry for my english, i am french)

I've just install the stater kit by following the instructions and when i launch it, this error appears :

Class "NumberFormatter" not found
resources/views/components/product-price.blade.php:โ€‰2

Some one can help me ? thanks.

Jean Philippe

products KO

Hi, i've installed this project following your guide without errors
Project start but the product page fail with this msg:
Illuminate\Database\QueryException
SQLSTATE[42S22]: Column not found: 1054 Unknown column '__soft_deleted' in 'where clause' (SQL: select count(*) as aggregate from getcandy_products where __soft_deleted = %% AND (getcandy_products.id LIKE %% OR getcandy_products.product_type_id LIKE %% OR getcandy_products.status LIKE %% OR getcandy_products.attribute_data LIKE %% OR getcandy_products.brand LIKE %% OR getcandy_products.created_at LIKE %% OR getcandy_products.updated_at LIKE %% OR getcandy_products.deleted_at LIKE 0) and getcandy_products.deleted_at is null) (View: /Users/mauro/Documents/_projects/Laravel/demo-store/vendor/getcandy/admin/resources/views/livewire/pages/products/index.blade.php)
http://localhost:8000/hub/products

Some help ?

Exception on /hub/settings/addons route

The exception I'm getting on /hub/settings/addons route:

Illuminate\Contracts\Filesystem\FileNotFoundException
File does not exist at path /home/nathan/dev/109/demo-store/vendor/getcandy/stripe/srccomposer.json. (View: /home/nathan/dev/109/demo-store/vendor/getcandy/admin/resources/views/livewire/pages/settings/addons/index.blade.php)

MediaLibrary adding white paddings

When adding images to products, if it is not square, white paddings are being added automatically.
I don't know if it is a starter kit configuration or media-library.
Where exactly can I configure this. I want it to be sth like "object-fit:cover"
Screenshot 2024-01-21 at 17 15 26

Class Number Formatter not found

  • I installed everything fine by following the docs but when I opened the project in the browser after running php artisan serve, I got this Error Link
  • It Seems that Formatter is a helper class but I can't find it either.
  • Did I Miss something ?

Screenshot attached below

code-snippet

Missing Sale Collection

The homepage looks for a sale collection, but we don't seed one. Maybe we should be for completeness?

e.g.

    /**
     * Return the sale collection.
     *
     * @return void
     */
    public function getSaleCollectionProperty()
    {
        return Url::whereElementType(Collection::class)->whereSlug('sale')->first()?->element;
    }

Incorrect SKUs/Prices with multiple options values

The current demo does not show the correct price/SKU in case of multiple options with different prices have been set.

To reproduce this, create a product with two options ( color, size ), and customize the price per every option value. In the front end it shows the following:

demo-shop

Ability to bulk upload products from json, csv or xlsx file

Do you plan to enable bulk products upload? It will be suitable for users who want to migrate from WordPress WooCommerce or some other platform. Existing database seeder can do some progress in that case, but JSON format is not user friendly to convert to or from XLSX file format.

Meilisearch causing exceptions in some views

Hello, I was able to install the demo store. However, on several routes, I'm getting exceptions related to Meilisearch (using the default .env settings with Meilisearch running in a Docker container):

Here are a couple of examples:

On /hub/orders:

MeiliSearch\Exceptions\ApiException
Invalid facet distribution, the fields `__soft_deleted, created_at, placed_at, status` are not set as filterable. (View: /home/nathan/dev/109/demo-store/vendor/getcandy/admin/resources/views/livewire/components/orders/index.blade.php)

On /hub/products:

MeiliSearch\Exceptions\ApiException
Attribute `__soft_deleted` is not filterable. Available filterable attributes are: ``. (View: /home/nathan/dev/109/demo-store/vendor/getcandy/admin/resources/views/livewire/pages/products/index.blade.php)

Favicon

Would be nice to have a favicon, looks a bit nicer.

Migration not found and its not work

When I follow the step for starterkit install and migrating database. but there are no migrations found and its give error specify key was too long.

MeiliSearch: The provided API key is invalid.

While following the installation instructions, after running the following command:

php artisan db:seed

I get this error:

 MeiliSearch\Exceptions\ApiException 
    The provided API key is invalid.

Same error appears after finishing the rest of the installation steps, then opening the /hub/products, /hub/orders or /hub/customers routes.

how to download the version for php 8.0?

how to download the release for php 8.0?

`
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for doctrine/dbal 3.3.7 -> satisfiable by doctrine/dbal[3.3.7].
- doctrine/dbal 3.3.7 requires composer-runtime-api ^2 -> no matching package found.
Problem 2
- Installation request for symfony/deprecation-contracts v3.1.0 -> satisfiable by symfony/deprecation-contracts[v3.1.0].
- symfony/deprecation-contracts v3.1.0 requires php >=8.1 -> your PHP version (8.0.8) does not satisfy that requirement.
Problem 3
- Installation request for symfony/event-dispatcher v6.1.0 -> satisfiable by symfony/event-dispatcher[v6.1.0].
- symfony/event-dispatcher v6.1.0 requires php >=8.1 -> your PHP version (8.0.8) does not satisfy that requirement.
Problem 4
- Installation request for symfony/event-dispatcher-contracts v3.1.0 -> satisfiable by symfony/event-dispatcher-contracts[v3.1.0].
- symfony/event-dispatcher-contracts v3.1.0 requires php >=8.1 -> your PHP version (8.0.8) does not satisfy that requirement.
Problem 5
- Installation request for symfony/options-resolver v6.1.0 -> satisfiable by symfony/options-resolver[v6.1.0].
- symfony/options-resolver v6.1.0 requires php >=8.1 -> your PHP version (8.0.8) does not satisfy that requirement.
Problem 6
- Installation request for symfony/string v6.1.2 -> satisfiable by symfony/string[v6.1.2].
- symfony/string v6.1.2 requires php >=8.1 -> your PHP version (8.0.8) does not satisfy that requirement.
Problem 7
- Installation request for symfony/translation-contracts v3.1.0 -> satisfiable by symfony/translation-contracts[v3.1.0].
- symfony/translation-contracts v3.1.0 requires php >=8.1 -> your PHP version (8.0.8) does not satisfy that requirement.
Problem 8
- symfony/deprecation-contracts v3.1.0 requires php >=8.1 -> your PHP version (8.0.8) does not satisfy that requirement.
- fakerphp/faker v1.19.0 requires symfony/deprecation-contracts ^2.2 || ^3.0 -> satisfiable by symfony/deprecation-contracts[v3.1.0].
- Installation request for fakerphp/faker v1.19.0 -> satisfiable by fakerphp/faker[v1.19.0].

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.
`

Need Clarification on Route and Controller Structure

Hello, I've installed the starter kit, but I'm unsure how the routes and controllers work. In the HTTP controller folder, I don't see any classes. If, for example, I want to modify methods, how can I do that?

Shipping Modifiers do not resolve from the AppServiceProvider in Livewire 3

Steps to reproduce:

  1. Clone Livewire starter kit.
  2. Shift L9 to L10
  3. Upgrade Lunar to 1.x
  4. Run Livewire upgrades

Expected behavior:

When you browse the CheckoutPage.php, you should see shipping modifiers, but instead the page is blank.

image

I need some guidance what to do next as container resolution seems complicated to troubleshoot. I used Ray to output the ShippingManifest on the original starter kit for Lunar 0.8 and it's evident that in the older Livewire 2 version the manifests are there on page load. On my test system I can't see it being initialized.

Collection page speed optimization and add pagination

The current code renders the list of products very slow on the server specially if we have 10000s of products under one collection, so we need to optimize the code, with the optimization we need the pagination.

Search Issue

hello,

i have installed this demo-store as per instructions , my project has setup completely. i served it using php artisan serve at http:127.0.0.1:8000. btw i am using laravel version 8.83.6.

but when i go to dashboard and try to open products the following error comes.

cURL error 7: Failed to connect to 127.0.0.1 port 7700: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://127.0.0.1:7700/indexes/demostore_products/search (View: C:\xampp\htdocs\demo-store\vendor\getcandy\admin\resources\views\livewire\pages\products\index.blade.php)

as well as when i try to seed data on command line using php artisan db:seed , the following error shows.

cURL error 7: Failed to connect to 127.0.0.1 port 7700: Connection refused (see h
ttps://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://127.0.0.1:7700/indexes/demostore_collections/documents?primaryKey=id

Any suggestion would greatly be appreciated.

thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.