Get up and running with OpenComponents in 3 simple steps.
💁 This guide relies on Heroku for its deploy, if you wish to rely on Now instead, click here.
Before starting make sure you have:
Click the button below and follow the instructions.
Install the OpenComponents CLI
$ npm install -g oc
Create your first component:
$ oc init my-first-component
Develop/Test locally by starting a local dev registry
$ oc dev . 3030
Your component will be available at:
-
endpoint: http://localhost:3030/my-first-component
-
fullPreview: http://localhost:3030/my-first-component/~preview
Add the registry using the CLI:
$ oc registry add http://my-registry.on.herokuapp.com/
Publish your component
$ oc publish my-first-component --username=YOURVALUEHERE --password=YOURVALUEHERE
Your component is now published 🎉 🎉 🎉 !
You can consume it here: http://my-registry.on.herokuapp.com/my-first-component