<aside> 💡 Frequently used commands. This is a helpful page to add to your Favorites.

</aside>

🚚 Running dev env

For BobaEditor and BobaBoard UI run (in the corresponding folders):

yarn run storybook

For BobaFrontend run:

# Start instance connected to local server (BobaServer must be running)
yarn run dev

# Start instance connected to staging server (note: changes go to prod DB)
yarn run dev:stage

For BobaServer run:

yarn run start-db
yarn run dev:watch

🚢 Debugging Logs on Frontend

To enable debug logs, set localStorage.debug to one of the following values (you can do so through the JavaScript console of your browser of choice):

// Print all the debug logs related to the editor
localStorage.debug = "bobapost:*";

// Print only the debug logs related to embeds
localStorage.debug = "bobapost:embeds:*";

// Print only the debug logs related to Twitter embeds
localStorage.debug = "bobapost:embeds:tweet";

// Print all the debug logs minus those ending with -verbose
localStorage.debug = "bobapost:*,-bobapost:*-verbose";

// Print all the debug logs related to the UI Component
localStorage.debug = "bobaui:*";

// Print all the debug logs related to the frontend
localStorage.debug = "bobafrontend:*";

// Print all the debug logs
localStorage.debug = "*";