This is a React theme for WordPress, built with Next.js, Webpack, Babel, Node.
These instructions will get you a copy of the project up and running on your local machine for development purposes.
git@github.com:artwithaliens/storefront.git
cd storefront
yarn install
Clone and activate the following plugins, in your WordPress plugin directory:
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 >
WooCommerce products(CSV) : The WooCommerce default products csv file is available at
wp-content/plugins/woocommerce/sample-data/sample_products.csv
a. You can use any secret token of your choice, however it would be best if you generate one using WordPress Salt generator (https://api.wordpress.org/secret-key/1.1/salt/) to generate a Secret. And just pick up any one of the token and add it in place of 'your-secret-token' below:
Define a Secret in wp-config.php
of your WordPress directory:
define('GRAPHQL_JWT_AUTH_SECRET_KEY', 'your-secret-token');
b. Depending on your particular environment, you may have to research how to enable these headers,
but in Apache, you can do the following in your .htaccess
:
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
.env.example
to .env
and update your React Site URLGRAPHQL_URL=http://wordpressSiteUrl/graphql
dev
Runs the node server in development modeArt With Aliens
app on your mobile.This project is licensed under the MIT License - see the LICENSE.md file for details