This project provides a way to quickly get up and running with a fully configurable JAMstack E Commerce site.
Out of the box, the site uses completely static data coming from a provider at providers/inventoryProvider.js
. You can update this provider to fetch data from any real API by changing the call in the getInventory
function.
This project is still in Beta.
- Clone the project
$ git clone https://github.com/dabit3/jamstack-ecommerce-professional.git
- Install the dependencies:
$ yarn
# or
$ npm install
- Run the project
$ gatsby develop
# or to build
$ gatsby build
Update providers/inventoryProvider.js with your own inventory provider.
-
Update src/pages/admin.js with sign up, sign, in, sign out, and confirm sign in methods.
-
Update src/templates/ViewInventory.js with methods to interact with the actual inventory API.
-
Update src/components/formComponents/AddInventory.js with methods to add item to actual inventory API.