Giter VIP home page Giter VIP logo

storefront's Introduction

Art With Aliens 👽

This is a React theme for WordPress, built with Next.js, Webpack, Babel, Node.

Live Site

https://artwithaliens.com

Getting Started 🏄

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

Installing 🔧

  1. Clone this repo in [email protected]:artwithaliens/storefront.git
  2. cd storefront
  3. yarn install

Configure Backend (WordPress site) 🔧

1. Add GraphQl support on WordPress

  1. Clone and activate the following plugins, in your WordPress plugin directory:

  2. 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

2. For Authentication.

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

Configure Front end 🔧

  • Rename .env.example to .env and update your React Site URL
GRAPHQL_URL=http://wordpressSiteUrl/graphql

Commands 💻

  • dev Runs the node server in development mode

Using PWA on mobile

  • Open the site in Chrome on your mobile and then click on add to home screen.
  • It will be downloaded and saved as a Progressive Web App on your mobile.
  • Once added look Art With Aliens app on your mobile.
  • This PWA will work even when you are offline.

Branches Information: 🌱

  1. master Main React WooCommerce theme
  2. develop For testing

Author

License 📃

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

storefront's People

Contributors

dependabot[bot] avatar efoken avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

storefront's Issues

Customer Account

Hi,

do you have any plans to update customer account and dashboard feature? Currently registration and login is not working.

No service worker detected

Hi,

probably there is some typo when loading service worker

No matching service worker detected.

SW registration failed: TypeError: Failed to register a ServiceWorker for scope ('https://artwithaliens.com/') with script ('https://artwithaliens.com/service-worker.js'): A bad HTTP response code (404) was received when fetching the script.

Screenshot 2021-05-10 at 06 55 36

Problen with schema

I'm trying to run dev, but get this problem.
Everything ok with category, but products notfound

(base) Vitiss-MacBook-Pro:storefront vitisindustriesltd$ npm run dev

[email protected] dev
concurrently "next dev" "yarn generate --watch"

yarn run v1.22.10
warning ../../package.json: No license field
$ graphql-codegen --watch
[0] ready - started server on 0.0.0.0:3000, url: http://localhost:3000
[0] info - Loaded env from /Users/vitisindustriesltd/Desktop/Lala/alien_woo/storefront/.env
[1] [09:58:38] Parse configuration [started]
[1] [09:58:38] Parse configuration [completed]
[1] [09:58:38] Generate outputs [started]
[1] [09:58:38] Generate ./src/graphql.ts [started]
[1] [09:58:38] Generate ./src/fragment-types.ts [started]
[1] [09:58:38] Load GraphQL schemas [started]
[1] [09:58:38] Load GraphQL schemas [started]
[0] info - Using webpack 5. Reason: future.webpack5 option enabled https://nextjs.org/docs/messages/webpack5
[0] (node:1654) [DEP_WEBPACK_SINGLE_ENTRY_PLUGIN] DeprecationWarning: SingleEntryPlugin was renamed to EntryPlugin
[0] (Use node --trace-deprecation ... to show where the warning was created)
[0] Defining routes from exportPathMap
[1] [09:58:52] Load GraphQL schemas [completed]
[1] [09:58:52] Load GraphQL documents [started]
[1] [09:58:53] Load GraphQL schemas [completed]
[1] [09:58:53] Load GraphQL documents [started]
[1] [09:58:53] Load GraphQL documents [completed]
[1] [09:58:53] Generate [started]
[1] [09:58:53] Generate [failed]
[1] [09:58:53] → Name "" must not begin with "", which is reserved by GraphQL introspection.
[1]
[1] Name "
" must not begin with "", which is reserved by GraphQL introspection.
[1] [09:58:53] Generate ./src/fragment-types.ts [failed]
[1] [09:58:53] → Name "
" must not begin with "", which is reserved by GraphQL introspection.
[1]
[1] Name "
" must not begin with "", which is reserved by GraphQL introspection.
[1] [09:58:53] Load GraphQL documents [completed]
[1] [09:58:53] Generate [started]
[1] [09:58:53] Generate [failed]
[1] [09:58:53] → Name "
" must not begin with "", which is reserved by GraphQL introspection.
[1]
[1] Name "
" must not begin with "", which is reserved by GraphQL introspection.
[1] [09:58:53] Generate ./src/graphql.ts [failed]
[1] [09:58:53] → Name "
" must not begin with "", which is reserved by GraphQL introspection.
[1]
[1] Name "
_______________________" must not begin with "", which is reserved by GraphQL introspection.
[1] [09:58:53] Generate outputs [failed]
[1] ℹ Watching for changes...
[0] info - Using external babel configuration from /Users/vitisindustriesltd/Desktop/Lala/alien_woo/storefront/.babelrc
[0] (node:1654) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
[0] BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
[0] Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
[0] Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE
*.
[0] event - compiled successfully
[0] event - build page: /404
[0] wait - compiling...
[0] event - build page: /404
[0] event - build page: /
[0] event - compiled successfully

Total price error above €1000

Hi,

Total price is showing €1.00 in cart when order goes above €1000

Lower than €1000

Screenshot 2021-04-13 at 14 45 52

and showing €1.00 when order is above €1000

Screenshot 2021-04-13 at 14 47 53
Screenshot 2021-04-13 at 14 48 05

Contact RootMutation Error

Hi,

Recently you implemented contact form via GraphQL. How did you add query field "contact"? Via register_graphql_field or
Filters /graphql_input_fields?

GraphQLDocumentError: Cannot query field "contact" on type "RootMutation".
[1]         at /src/queries/contact.graphql:8:3
[1] [09:29:04] Generate ./src/fragment-types.ts [failed]

please advise

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.