PawanKumar198 / laravel-react-sample-app

Sample BigCommerce App Using Laravel and React

Home Page:https://medium.com/p/711ceceb5006

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel React App for BigCommerce

This is a basic BigCommerce app with two screens, a catalog summary view and list of orders that can be cancelled, built using Laravel and React.

It's meant to fast track your ability to take a concept for an app to something usable within the BigCommerce control panel. A live store can install this app while it runs locally.

A walkthrough going over the steps taken to produce this app, along with the steps required to create the app in BigCommerce, can be read here.

Installation

Before jumping in, you'll want to make sure you have the system requirements met:

To install PHP dependancies:

composer install

And JS dependancies:

npm install

To test on a BigCommerce store, you can create a free trial on bigcommerce.com or request a free sandbox store by signing up to be a tech partner.

Usage

To compile JS assets:

npm run dev

After compiling the app should be reachable at the site you are hosting the app on locally. i.e https://laravel-react-bigcommerce-app.test/

When running the app outside of BigCommerce, setting the follow environment variable will cause the app to use the local API credential (also in the .env file):

APP_ENV=local

Likewise, setting it to production will use only the credentials received during the OAuth handshake when the app is install on the BigCommerce store:

APP_ENV=production

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

Sample BigCommerce App Using Laravel and React

https://medium.com/p/711ceceb5006

License:MIT License


Languages

Language:JavaScript 88.9%Language:CSS 7.3%Language:PHP 3.7%Language:HTML 0.0%