GithubHelp home page GithubHelp logo

andriilive / woo-next-br Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fabiojundev/woo-next-br

0.0 0.0 0.0 202.61 MB

WooCommerce NextJs React CMS Theme for Brazilian Market - using GraphQL queries and mutations and Apollo Client

Home Page: https://woo-next-br-fabio-jun.vercel.app

JavaScript 96.39% HTML 2.79% SCSS 0.82%

woo-next-br's Introduction

WooCommerce Nextjs React Theme ๐Ÿš€

Project Status: Active.

Description โญ:

This is a theme designed to work with WooCommerce headless WordPress site. Some of the technologies used:

  • The theme was built using React lib and NextJS to generate the page on the server side.
  • Uses GraphQL queries and mutations with Apollo client to retrieve information from the server, manage the cart and create the order.
  • Shipping cost information is present in the product page and is integrated with Correios-BR.

Live Demo:

Live Demo Site

Demo Desktop ๐Ÿ“น

Checkout Page Demo

Payment Demo ( Paypal example )

Order Received Demo

Stripe Checkout

Stripe Demo Video

Features:

  • WooCommerce Store in React, containg the following pages: Products, Single Product, AddToCart, Cart and Checkout.
  • SSR - Server Side Rendering using NextJs.
  • SEO friendly, integrated with Add WPGraphQL SEO plugin.
  • Paginated Blog Posts from the WordPress backend.
  • Automatic Code Splitting
  • Hot Reloading
  • Prefetching
  • Incremental Static (Re)generation ( Next.js 12 support )
  • GraphQL with Apollo Client
  • Tailwindcss
  • Integrated with Mercado Pago CheckoutPro Gateway
  • New brazilian gateways in the near future.

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]:fabiojundev/woo-next-br.git
  2. cd woo-next-br
  3. yarn install

Add GraphQL support for WordPress

  1. Download and activate the following plugins , in your WordPress plugin directory:
  • wp-graphql Exposes graphql for WordPress ( Tested with v-1.6.12 of this plugin )

  • wp-graphql-woocommerce Adds Woocommerce functionality to a WPGraphQL schema ( Tested with v-0.10.7 of this plugin )

  • add-wpgraphql-seo Extends WPGraphQL Schema to use with Yoast SEO ( Tested with v-4.16.0 of this plugin )

  • wp-graphql-offset-pagination Extends WPGraphQL Schema to accept pagination in blog posts ( Tested with v-0.20.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

Configuration (.env file) ๐Ÿ”ง

  1. (Required) Create a .env file taking reference from .env-example and update your WordPressSite URL.
  • CMS public url: NEXT_PUBLIC_WORDPRESS_URL=https://examplo.com.br
  • WooCommerce API KEY: WC_CONSUMER_KEY=public_xxx, WC_CONSUMER_SECRET=secret_xxx
  • Mercado Pago API KEY: NEXT_PUBLIC_MP_PUBLIC_TOKEN=public_xxx, MP_ACCESS_TOKEN=access_xxx, NEXT_PUBLIC_MP_IPN_URL=https://cms.exemplo.com.br/wc-api/wc_woomercadopago_basic_gateway/, NEXT_PUBLIC_MP_RETURN_URL=https://exemplo.com.br/pedido-recebido/

Branch details

The main has the GraphQL implementation and is the current development branch.

Common Commands ๐Ÿ’ป

  • yarn dev Runs server in development mode
  • yarn build Build production bundles. Use it to test if everything is ok for deploy.

Important Note โญ:

This is a fork from imhran-sayed's project, customized for brazilian market.

Este รฉ um fork do projeto do imhran-sayed, personalizado para o mercado brazileiro.

Code Contributors โœฐ

Thanks to all the people who contributed to the code of this project ๐Ÿค

Fabio Jun Imran Sayed Daniel F Fandi Rahmawan yudyananda

Contributing ๐Ÿ‘ฅ

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

Author ๐Ÿ‘ค

License ๐Ÿ“ƒ

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

woo-next-br's People

Contributors

delunix avatar dependabot[bot] avatar fabiojundev avatar imranhsayed avatar mahvash-fatima avatar muhaimincs avatar w3bdesign avatar yudyananda 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.