Skip to content
This repository was archived by the owner on Oct 9, 2024. It is now read-only.
/ embed.js Public archive

A small embeddable hosted checkout using Commerce.js

License

Notifications You must be signed in to change notification settings

chec/embed.js

Folders and files

NameName
Last commit message
Last commit date
Feb 12, 2021
Feb 12, 2021
Feb 12, 2021
Feb 12, 2021
Feb 12, 2021
Feb 12, 2021
Oct 29, 2020
Feb 12, 2021
May 10, 2021
Feb 12, 2021
Feb 12, 2021
Feb 14, 2022

Repository files navigation

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.

About

A small embeddable hosted checkout using Commerce.js

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published