Install boba-editor
boba-editor is BobaBoard’s own extension of the QuillJS text editor, and is responsible for anything related to text formatting and embeds (both in “edit” and “display” mode).
Check Out the Codebase
Section titled “Check Out the Codebase”First, fork the boba-editor repository in order to save a copy of the code to your own account.
In a terminal on your own machine, enter the local directory where you want to keep your copy of boba-editor, then run the following commands:
# Clone the codebase from githubgit clone https://github.com/[YOUR GITHUB USERNAME HERE]/boba-editor.git# Enter the codebase directorycd boba-editor# Install all necessary codeyarn installStart a Local DevServer
Section titled “Start a Local DevServer”In a terminal, run the following command:
yarn run storybookYou should now have a DevServer running at http://localhost:6006 that will look something like the online demo.
Developing for Embeds
Section titled “Developing for Embeds”Embeds that rely on iFramely won’t work out of the box. If you’re developing for embeds, you have two options:
Option 1: Connect to the BobaBoard embeds service (Recommended)
Section titled “Option 1: Connect to the BobaBoard embeds service (Recommended)”Given that the embeds service won’t accept requests from localhost for security reasons, you will need to install an “Allow CORS extension” (example for Chrome). Once you allow CORS in your browser window, embeds should automatically start working.
Option 2: Run iFramely on your own machine
Section titled “Option 2: Run iFramely on your own machine”You can run storybook pointing to a local instance of iFramely by using the
yarn run storybook:local-embeds command. To run your own iFramely you can use
the instructions here. You will also likely
need BobaBoard’s iframely config as a started config. You can ask the webmaster
for a copy of this file.