@shiftcommerce/shift-next

0.22.29 • Public • Published

js-standard-style

Shift Next

Purpose

This Library can be used to build a SHIFT-powered ecommerce front-end site with Next.js. It provides a collection of pages and backend endpoints. Pages are set up with algolia and redux and can be customised to fit different front-end designs. The backend endpoints go to the SHIFT-platform.

Getting started

To add this package to your project you can carry out the instructions below.

Install:

yarn add @shiftcommerce/shift-next
npm i @shiftcommerce/shift-next

Use within your project:

To make sure everything works correctly you need to pass these .env variables to shift next's config.

in your project

import { shiftNextConfig } from '@shiftcommerce/shift-next'

// example
shiftNextConfig.set({
  algoliaApiKey: ALGOLIA_API_KEY,
  algoliaAppId: ALGOLIA_APP_ID,
  algoliaIndexName: ALGOLIA_INDEX_NAME,
  algoliaResultsPerPage: ALGOLIA_RESULTS_PER_PAGE,
  apiHostProxy: API_HOST_PROXY,
  payPalClientID: PAYPAL_CLIENT_ID,
  storeName: 'ShopGo'
})

Style Guide

in progress...

Readme

Keywords

none

Package Sidebar

Install

npm i @shiftcommerce/shift-next

Weekly Downloads

2

Version

0.22.29

License

ISC

Unpacked Size

632 kB

Total Files

157

Last publish

Collaborators

  • cbarratt_s
  • hpompecki
  • azfletch
  • owensmooth