A curated collection of examples, use cases, code demos, and experiments that showcase the power of Commerce Layer API and developer tools.
This repository contains example code demos that are not 100% production-ready in most cases. We do not encourage you to use the code directly for production development but you can build on them to develop your ecommerce applications or integrations. Our goal here is to provide you with different reference code (accompanied by tutorials) that will show you different ways you can build with Commerce Layer. We will constantly add new examples with different composable technologies, so check back often :).
Here are the parent categories of the examples in this repository for easy navigation:
- Authentication — Different ways to implement multi-factor authentication (MFA) or single sign-on authentication (SSO) with Commerce Layer.
- CMS — Implementation of multi-market ecommerce web stores with top content management systems.
- Lambda functions — Several lambda functions you can use to do fun stuff with Commerce Layer.
- Search — Implementation of product search and personalization with Commerce Layer and a CMS.
- Solutions — Demos, use cases, and code sandboxes of several parts of our API and developer tools.
- Webhooks — Several ways you can use Commerce Layer webhooks.
- All Developer Resources
- Commerce Layer Documentation
- Commerce Layer API Reference
- Commerce Layer Core Concepts
- Commerce Layer Data Model
- Commerce Layer Blog
- Commerce Layer Case Studies
-
Fork this repository (learn how to do this here).
-
Clone the forked repository like so:
git clone https://github.com/<your username>/examples.git && cd examples
-
If you're adding a new example, choose the right category for an example (refer to the introduction above) and create a new sub-folder for it inside the category folder (use the kebab-case naming convention in lower-case to name the sub-folder).
-
Add the new example code and all associated files to the new sub-folder you created.
-
Create a
README.md
file in the new sub-folder and add a description of the new example. You can use this template as a guide (feel free to add more sections and document the example more, as required). -
Add the new example to the list in the category's
README.md
file following the same format as the other examples (follow the sequential alphabetical order by name as seen in your local computer). -
Make your changes and create a pull request (learn how to do this).
-
Someone will attend to your pull request, provide some feedback, and eventually merge the PR!
Note
This repository will include examples that follow all the best practices we are following in all our other public OSS projects. If you decide to contribute, someone will review and provide some feedback. Thank you!
-
Create a
Bug report
orFeature request
issue in this repository. -
Ping us on Twitter.
This repository is published under the MIT license.
Commerce Layer is a multi-market commerce API and order management system that lets you add global shopping capabilities to any website, mobile app, chatbot, wearable, voice, or IoT device, with ease. Compose your stack with the best-of-breed tools you already mastered and love. Make any experience shoppable, anywhere, through a blazing-fast, enterprise-grade, and secure API.