https://github.com/chec/embed.js
A small embeddable hosted checkout using Commerce.js
https://github.com/chec/embed.js
Last synced: about 1 year ago
JSON representation
A small embeddable hosted checkout using Commerce.js
- Host: GitHub
- URL: https://github.com/chec/embed.js
- Owner: chec
- License: bsd-3-clause
- Archived: true
- Created: 2016-08-22T23:51:22.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-03-05T20:54:44.000Z (over 3 years ago)
- Last Synced: 2025-03-12T10:11:22.076Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://commercejs.com
- Size: 2.04 MB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Security: SECURITY.md
Awesome Lists containing this project
README
This repository is for building `embed.js`, which can be used by small-scale merchants to embed a hosted checkout
in their website.
commercejs.com | @commercejs | Slack
## Installation
Run `yarn` inside the project folder, when you've cloned the project.
## Rebuilding source
To watch and rebuild changes: `yarn start`. This will start a local dev server running at http://localhost:3000, and
will hot reload in your browser. The default public/index.html file contains a number of buttons that test the snippet.
The source code is in `src/`, and is written in React, with Tailwind for CSS.
### Production
Build for production with `yarn build`. You will need to upload `build/static/css/embed.css` and `build/static/js/embed.js`
to the Chec CDN (manually at this point): https://cdn.chec.io/v3/embed.css and https://cdn.chec.io/v3/embed.js.
## Testing
Load up `yarn start` (or `yarn build`, then use `yarn serve` for local server).
## License
Released under BSD-3-Clause, [see here](LICENSE.md).