{"id":20839645,"url":"https://github.com/chec/example-store-boilerplate","last_synced_at":"2025-05-12T01:30:26.013Z","repository":{"id":41753465,"uuid":"224537838","full_name":"chec/example-store-boilerplate","owner":"chec","description":"Quick start boilerplate using the Commerce.js SDK to render product data into pages. This eCommerce template includes pages for storefront, cart, and checkout. Basic styling with Bootstrap.","archived":true,"fork":false,"pushed_at":"2023-03-04T05:18:02.000Z","size":3784,"stargazers_count":6,"open_issues_count":8,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-23T14:42:47.011Z","etag":null,"topics":["boilerplate-template","bootstrap","checkout","commercejs","ecommerce","javascript","starter-template"],"latest_commit_sha":null,"homepage":"","language":"Handlebars","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-28T00:08:33.000Z","updated_at":"2024-10-09T14:32:05.000Z","dependencies_parsed_at":"2023-02-03T04:46:37.978Z","dependency_job_id":null,"html_url":"https://github.com/chec/example-store-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chec%2Fexample-store-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chec%2Fexample-store-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chec%2Fexample-store-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chec%2Fexample-store-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chec","download_url":"https://codeload.github.com/chec/example-store-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253659137,"owners_count":21943605,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boilerplate-template","bootstrap","checkout","commercejs","ecommerce","javascript","starter-template"],"created_at":"2024-11-18T01:14:05.594Z","updated_at":"2025-05-12T01:30:25.472Z","avatar_url":"https://github.com/chec.png","language":"Handlebars","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Commerce.js boilerplate\n\nUse this boilerplate to generate a bare-bones example storefront + cart + checkout using Commerce.js. \n\nUse the test data provided, or add your Chec account's public API key to pull product data.\n\n![](https://github.com/chec/example-store-boilerplate/blob/master/public/assets/images/Screen%20Shot%202020-06-22%20at%205.09.45%20PM.png)\n\n## Requirements\n\nYou will need the following to run this store:\n\n* NodeJS, v8/10 or newer\n* Yarn, or npm\n\n## Getting started\n\nTo run the store (from your command line):\n\n* Clone this project, e.g. `git clone https://github.com/chec/example-store-boilerplate.git`\n* Navigate into the folder, e.g. `cd example-store-boilerplate`\n* Install the dependencies, e.g. `yarn` or `npm install`\n* Create a `.env` file (you can use `.env.example` as a template) and insert your Chec public key as `MIX_CHEC_API_KEY`\n* Start the dev server, e.g. `yarn hot` or `npm run hot`\n\nThis will start a local server running on http://localhost:8080, which you can use to test it out.\n\n## How it works\n\nThis store has a couple of basic HTML pages (see `public/index.html` for example) which load up some JavaScript and\nCSS. From here we use a series of JavaScript functions (see `src/js/store.js`) to communicate with the\n[Commerce.js SDK](https://github.com/chec/commerce.js) and render products and cart information on the page.\n\nThese calls are often wrapped in jQuery AJAX requests, and the results are passed through\n[Handlebars](https://handlebarsjs.com/) templates in order to keep the dynamic requests templated for the examples.\n\nHere are the libraries and tools we use in this example:\n\n* CSS: Bootstrap, with some custom SCSS\n* JavaScript: a mix of vanilla/ES6 and jQuery, compiled with Laravel Mix\n* Markup: Standard HTML, with dynamic templates using Handlebars\n* Build: Node.js with Yarn (or NPM) \n\nEverything you see in this repository is an example of how you could use Commerce.js in your own project. You are\nof course free to modify the code in this repository as you please. Commerce.js can be implemented into any frontend\nframework. For more information, see [the Commerce.js documentation](https://commercejs.com/docs).\n\n## Issues\n\nIf you find any problems with this example store, please feel free to raise an issue on\n[our GitHub repository](https://github.com/chec/example-store-boilerplate/issues). Pull requests are also welcomed!\n\n## License\n\nBSD-3-Clause - see [LICENSE.md](LICENSE.md).\n\n## ⚠️ Note\n\n### This repository is no longer maintained\nHowever, we will accept issue reports and contributions for this repository. See the [contribute to the commerce community](https://commercejs.com/docs/community/contribute) page for more information on how to contribute to our open source projects. For update-to-date APIs, please check the latest version of the [API documentation](https://commercejs.com/docs/api/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchec%2Fexample-store-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchec%2Fexample-store-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchec%2Fexample-store-boilerplate/lists"}