An open-source, dynamic e-commerce solution powered by Nuxt 3 and GraphQL, headless storefront replacement for Woocommerce. Featuring a user interface in the style of Pinterest and fully customizable (Vue, Nuxt3).
🚀 Live Demo
NuxtCommerce is a dynamic and lively e-commerce platform developed with Nuxt 3. Developed for WooCommerce, NuxtCommerce optimizes data flow with WPGraphQL, offering an efficient shopping experience. It stands out with its Pinterest-style user-friendly interface and fashion-oriented structure. With its dark mode feature and open-source nature, it offers flexibility and continuous development opportunities.
If your product stocks and prices are not changeable, and you are not continuously uploading new products, it could be beneficial for you to opt for Woonuxt. This project, developed by scottyzen, is static, thus providing a faster solution.
- Nuxt3 / Vue
- Headless Storefront
- GraphQL with Apollo Client
- NUXT UI / Tailwind CSS
- Pinterest Interface
- Developed for WooCommerce
- Dynamic
- Open Source
- Suitable for Fashion Category
- Dark Mode
- UI Lab
To get started with NuxtCommerce, follow these steps:
-
Clone the repository:
git clone https://github.com/your-username/nuxtcommerce.git cd nuxtcommerce
-
Install dependencies:
Make sure you have Node.js installed. Then run:
pnpm install
-
Set up environment variables:
Create a .env file in the root directory and add the following variables:
GQL_HOST=https://your-woocommerce-site.com/graphql
-
Run the development server:
pnpm run dev
Your application should now be running on http://localhost:3000.
This guide will help you set up your WordPress site with WooCommerce and GraphQL for seamless integration. Follow the steps below carefully to ensure a successful configuration.
To begin, make sure the following plugins are installed and activated on your WordPress site:
- WooCommerce: The essential plugin for creating an e-commerce store.
- WPGraphQL: Enables GraphQL support for WordPress.
- WPGraphQL CORS: Allows Cross-Origin Resource Sharing for WPGraphQL.
- WPGraphQL WooCommerce (WooGraphQL): Adds WooCommerce-specific GraphQL functionalities.
Tip: You can install these plugins directly from the WordPress Plugin Repository or upload them manually if you have the plugin files.
To populate your WooCommerce store with product data, follow these steps:
- Download the product data files from this link. The zip file contains both variable and variation product CSV files.
- Navigate to the WooCommerce admin panel.
- Go to Products > Import, then upload the CSV files from the downloaded zip.
- Follow the on-screen instructions to map the CSV columns to WooCommerce fields and complete the import.
Note: Ensure your CSV files are properly formatted to avoid errors during the import process.
-
Navigate to WPGraphQL > Settings in the WordPress admin dashboard.
-
Locate the GraphQL Endpoint URL and copy it. The default endpoint is typically
/graphql
. -
Open your project’s
.env
file and add the following line:GQL_HOST=<your_graphql_endpoint_url>
Replace
<your_graphql_endpoint_url>
with the copied URL from WPGraphQL settings.
Important: Make sure your server allows CORS (Cross-Origin Resource Sharing) to enable communication between your WordPress backend and frontend application.
By following these steps, your WordPress site will be ready to integrate WooCommerce with GraphQL. For additional troubleshooting or advanced customization, refer to the official documentation of each plugin.
Contributions of any kind are welcome! You can open an issue for requests, bug reports, or general feedback, or you can directly create a pull request(PR).
Don't hesitate to get in touch if you have any questions or suggestions:
Email: [email protected]
Twitter: @ZHatlen