Get started with OpenComponents
Before starting make sure you have:
#1 - Deploy the registry to Heroku
Click to deploy to Heroku - deploy your OpenComponents registry
#2 - Build your first component
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
- info: http://localhost:3030/my-first-component/~info
- preview: http://localhost:3030/my-first-component/~preview
#3 Publish the component to the registry
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: http://my-registry.on.herokuapp.com/my-first-component