Code Monkey home page Code Monkey logo

nuxt3-magento-sdk-storefront's Introduction

Image

The Next Magento Storefront from Vue Storefront

A boilerplate storefront built with the Vue Storefront Magento 2 Integration and Storefront UI 2

๐Ÿšง This repo is under heavy development. Expect breaking changes regularly. Do not use for production ๐Ÿšง

Getting Started

Cloning the repository

clone the project

git clone https://github.com/vuestorefront/nuxt3-magento-sdk-storefront.git

cd into the cloned folder

cd nuxt3-magento-sdk-storefront

Install dependencies

yarn install

Configure

Ensure you have a running magento instance.

  • Create an .env file in apps/middleware (use the .env.example as template ).
  • Create an .env file in apps/nuxt (use the .env.example as template ).

Fire it up

run app

yarn dev

Contributors

If you like to contribute please check out the contribution guide

See our project board for a nice overview of the progress

If you're looking for the magento2-sdk repo you can find it here: https://github.com/vuestorefront/nuxt3-magento-sdk-storefront

Useful Links

Discord invite link

Discord Channel for this project

Magento 2 SDK Docs

Storefront UI 2 Docs

nuxt3-magento-sdk-storefront's People

Contributors

faizanarif121 avatar mkozianowski avatar phantomdraven avatar rohrig avatar tajdev1 avatar tidypol 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

nuxt3-magento-sdk-storefront's Issues

[Feature]: Minicart

How the project can be improved?

Minicart functionality

What are the acceptance criteria?

  • Show added products
  • Edit quantity
  • Display product options (for configurable products)
  • Delete product action

Additional information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

[Feature]: Integration with Magento PageBuilder

How the project can be improved?

Integration with the cms pagebuilder of Magento.

What are the acceptance criteria?

  • Using the backoffice of Magento i would like to have all the feature of drag&drop items of the pagebuilder.

Additional information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Initial setup

  • create nuxt app
  • install magento sdk
  • create middleware
  • update readme
  • create video
  • add changelog

[Feature]: Add to cart

How the project can be improved?

Add to cart functionality in product page

What are the acceptance criteria?

  • Product adds to cart from product page

Additional information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

[Feature]: Cart page

How the project can be improved?

Add the "cart" page to enable users to manage their shopping cart during the shopping experience. Here are the key functionalities I would like to implement:

  1. Order Review: Users should be able to view a detailed overview of the cart, including the products, quantities, and prices.

  2. Product Updates: Users should be able to modify the quantity of products in the cart or remove specific items.

  3. CMS Block Content Management: I want to make the "cart" page customizable by allowing the addition of CMS blocks. This will enable us to provide additional information, such as shipping policies or active promotions.

Expected Result:

  • Users should be able to easily manage cart contents.
  • Cart changes should be accurately reflected during the checkout process.

What are the acceptance criteria?

  • Display product list in cart page
  • Main product actions (change qty, remove product etc.)
  • Render a cms block in cart page
  • Display cart totals

Additional information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

create route middleware

We can use a similar approach as V2.

detect the route type in a global middleware
set the route type in app state ( I think we can just use useState( ) )

Image

  • create middleware/route.global.ts
  • create pages/[...slug].vue catch-all page
    • route to product/category/cms based on route type

Using Environment Variables inside of sdk.config.ts

What is your question / Please describe your issue

Since you would need to add env vars to the sdk.config.ts file, you cannot access environment variables directly. As you probably noticed, you need to add environment variables to your runtimeConfig.public. But since we are locked into this approach, you will need to make this a function to be exported and access const $config = useRuntimeConfig() inside this function.

However the issue with this is, then it can only be called within nuxt context. Which means you need to export a function, not the object. Then of course you need to change all references to this.

What version of Nuxt3-Magento2-Store are you using?

1.0.0

Code of Conduct

  • I agree to follow this project's Code of Conduct

Create Top Navbar

This navbar should

  • be located in the components/blocks/layout dir
  • use the green NavbarTop component from SFUI2
  • component name: NavbarTop

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.