GithubHelp home page GithubHelp logo

delunix / woo-next Goto Github PK

View Code? Open in Web Editor NEW

This project forked from imranhsayed/woo-next

0.0 1.0 0.0 27.89 MB

:rocket: React WooCommerce theme, built with Next JS, Webpack, Babel, Node, Express, using GraphQL.

Home Page: https://codeytek.com/course/woocommerce-with-react-course/

JavaScript 99.53% CSS 0.22% HTML 0.25%

woo-next's Introduction

Woo Next React Theme ๐Ÿš€

  • This is a React WooCommerce theme, built with Next JS, Webpack, Babel, Node, GraphQl

Full Course Video Tutorial

Demo Desktop ๐Ÿ“น

Demo Tablet and Mobile View ๐Ÿ“น

Categories

Live Demo:

Live Demo Site

Checkout Page Demo

Payment Demo ( Paypal example )

Order Received Demo

Features:

  1. WooCommerce Store in React( contains: Products Page, Single Product Page, AddToCart, CartPage and Checkout Page )
  2. SSR
  3. SEO friendly
  4. Automatic Code Splitting
  5. Hot Reloading
  6. Prefetching
  7. GraphQL with Apollo Client

Getting Started ๐Ÿš€

These instructions will get you a copy of the project up and running on your local machine for development purposes.

Prerequisites ๐Ÿ“„

Installing ๐Ÿ”ง

  1. Clone this repo using terminal git clone [email protected]:imranhsayed/woo-next
  2. cd woo-next
  3. npm install

Add GraphQl support for WordPress

  1. Clone and activate the following plugins , in your WordPress plugin directory:
  • wp-graphql Exposes graphql for WordPress ( Tested with v-0.8.0 of this plugin )
  • wp-graphiql Provides GraphiQL IDE (playground) to the WP-Admin.
  • wp-graphql-woocommerce Adds Woocommerce functionality to a WPGraphQL schema ( Tested with v-0.5.0 of this plugin )

You can also import default wooCommerce products that come with wooCommerce Plugin for development ( if you don't have any products in your WordPress install ) WP Dashboard > Tools > Import > WooCommerce products(CSV): The WooCommerce default products csv file is available at wp-content/plugins/woocommerce/sample-data/sample_products.csv

Configuration ๐Ÿ”ง

  • 1.Rename client-config-example.js to client-config.js and update your React Site URL and WordPressSite URL ( Used access it in ES6 file. )
const clientConfig = {
	siteUrl: 'xxxxx', // e.g. 'http://xyz.com'
    graphqlUrl: 'xxxxx' // e.g. 'http://wordpressSiteUrl.com/graphql'
};

export default clientConfig;
    1. Rename wooConfig.example.js to wooConfig.example.js and update your React Site URL and WordPressSite URL ( Used access it in common js file. )
const wooConfig = {
	siteUrl: 'xxxxx', // e.g. 'http://xyz.com'
    graphqlUrl: 'xxxxx' // e.g. 'http://wordpressSiteUrl.com/graphql'
};

module.exports = wooConfig;

Branch details

  1. feature/rest-api Contains REST API Implementation.

The master branch has the GraphQL implementation.

Common Commands ๐Ÿ’ป

  • dev Runs server in development mode

Contributing ๐Ÿ‘ฅ

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning ๐Ÿ“‘

I use Git for versioning.

Author ๐Ÿ‘ค

License ๐Ÿ“ƒ

This project is licensed under the MIT License - see the LICENSE.md file for details

woo-next's People

Contributors

delunix avatar dependabot[bot] avatar imranhsayed avatar

Watchers

 avatar

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.