Skip to content

Space48/bigcommerce-laravel-react-starter-app

Repository files navigation

Space48 - Starter Laravel and React App for Bigcommerce

This is a bare bones Laravel and React Bigcommerce app starter kit built by Space48. Its purpose is to allow you to start building bigcommerce apps quickly and easily, with all the tools you need to develop a successful app.

Space48 apps built using this starter:

Automated Categories | Category Merchandiser | Mega Menu Builder | Page Scheduler | Metafields Manager | Store Locator

Features

  • Bigcommerce request and response handling
  • Manages Bigcommerce install/load/uninstall process flow
  • Bigcommerce API Rate limiting
  • Custom Events (e.g. Store Installed)
  • Uses BigDesign to create a platform-native look and feel
  • Custom hooks
  • Latest version of Laravel & React - PHP 8+, React 17+

example screenshot

Prerequisites

To develop your Bigcommerce app, you’ll need:

Getting started

To get the app running locally, clone the repo and run:

composer install

npm install

Create a .env file by copying the env.example and amending for your local environment setup.

If using Laravel Sail then use sail artisan instead of php artisan going forward, and run:

./vendor/bin/sail up

Then:

php artisan migrate

npm run dev

Next, if you haven’t already, create an app on your Bigcommerce developer account. You’ll need to populate the following fields under the technical tab, to match your local development domain.

You’ll also need to set the following OAuth scopes:

  • Information & Settings: READ-ONLY
  • Products: READ-ONLY (this can be removed later, if it’s not required)

Once the app has been saved, copy the following details into the .env file:

BIGCOMMERCE_APP_ID=<shown in the URL when editing your app>
BIGCOMMERCE_CLIENT_ID=<shown via View Client ID>
BIGCOMMERCE_CLIENT_SECRET=<shown via View Client ID>
BIGCOMMERCE_WEBHOOK_SECRET=<Generate a unique code for this>

You’re now ready to install the app on your store.

Customising your app

By default, the starter kit comes with the following:

  • Dashboard page (products list example)
  • Installation success page
  • Welcome new user page
  • Error page
  • 404 page

These are found under:

resources/js/pages

You can also customize your logo by replacing the existing file here:

public/img/logo.png

Testing

Tests can be ran via:

php artisan test

Contributing

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

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages