woo-next
# [WooCommerce Nextjs React Theme](https://woo-next-imranhsayed.vercel.app/) :rocket: [](https://www.repostatus.org/#active)     > * This is a React WooCommerce theme, built with Next JS, Webpack, Babel, Node, GraphQl πΉ [Full Course Video Tutorial](https://codeytek.com/course/woocommerce-with-react-course/) ## Important Note β: The code for the Video Tutorial is in the branch [youtube-course](https://github.com/imranhsayed/woo-next/tree/youtube-course) However, since there is continuous contribution and updates to this project. The 'master' branch is upto date with those changes. You can also refer to the PR notes for changes. ## Demo Desktop :video_camera:  ## Live Demo: [Live Demo Site](https://woo-next-imranhsayed.vercel.app/) ## Checkout Page Demo  ## Payment Demo ( Paypal example )  ## Order Received Demo  ## Stripe Checkout [Stripe Demo Video](https://youtu.be/i75_Vtx-CnA)  # Features: 1. WooCommerce Store in React( contains: Products Page, Single Product Page, AddToCart, CartPage and Checkout Page with country selection ). 2. SSR 3. SEO friendly 4. Automatic Code Splitting 5. Hot Reloading 6. Prefetching 8. Incremental Static (Re)generation ( Next.js 10 support ) 9. GraphQL with Apollo Client 10. Tailwindcss 11. Stripe Checkout ( with Stripe Session and Stripe webhook) ## Getting Started :rocket: These instructions will get you a copy of the project up and running on your local machine for development purposes. ### Prerequisites :page_facing_up: ### Installing :wrench: 1. Clone this repo using terminal `git clone [email protected]:imranhsayed/woo-next` 2. `cd woo-next` 3. `yarn install` ## Add GraphQl support for WordPress 1. Download and activate the following plugins , in your WordPress plugin directory: * [wp-graphql](https://github.com/imranhsayed/woo-next/tree/master/wordpress/plugins) Exposes graphql for WordPress ( **Tested with v-1.3.8** of this plugin ) * [wp-graphql-woocommerce](https://github.com/imranhsayed/woo-next/tree/master/wordpress/plugins) Adds Woocommerce functionality to a WPGraphQL schema ( **Tested with v-0.8.1** of this plugin ) * [headless-cms](https://github.com/imranhsayed/woo-next/tree/master/wordpress/plugins) Extends WPGraphQL Schema ( **Tested with v-1.8.0** of this plugin ) * Make sure Woocommerce plugin is also installed in your WordPress site. 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` ## Hero Carousel. To use Hero carousel, create a category called 'offers' from WordPress Dashboard > Products > Categories. Now create and assign as many child categories to this parent 'offers' category with name, description and image. These Child categories data will automatically be used to create hero carousel on the frontend. ## Configuration(for GraphQL implementation) :wrench: * _Note_ Below is for GraphQL implementation , for REST API check [feature/rest-api](https://github.com/imranhsayed/woo-next/tree/feature/rest-api) branch 1. (Required) Create a `.env` file taking reference from `.env-example` and update your WordPressSite URL. - `NEXT_PUBLIC_WORDPRESS_URL=https://example.com` ## Branch details 1. [feature/rest-api](https://github.com/imranhsayed/woo-next/tree/feature/rest-api) Contains REST API Implementation. 2. The `master` branch has the GraphQL implementation. ## Common Commands :computer: * `dev` Runs server in development mode ## Code Contributors β° Thanks to all the people who contributed to the code of this project π€ <div> <img src="https://github.com/imranhsayed.png?size=30" alt="Imran Sayed"> <img src="https://github.com/w3bdesign.png?size=30" alt="Daniel F"> <img src="https://github.com/delunix.png?size=30" alt="Fandi Rahmawan"> <img src="https://github.com/yudyananda.png?size=30" alt="yudyananda"> </div> ## Contributing :busts_in_silhouette: Please read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us. ## Versioning :bookmark_tabs: I use [Git](https://github.com/) for versioning. ## Author :bust_in_silhouette: * **[Imran Sayed](https://twitter.com/imranhsayed)** ## License :page_with_curl: This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details