Skip to content

Useful Commands

Frequently used commands. This is a helpful page to add to your Favorites. Here’s how to do so on Notion.

For boba-editor and boba-components run (in the corresponding folders):

Terminal window
yarn run storybook

For boba-frontend run:

Terminal window
# Start instance connected to local server (boba-backend must be running)
yarn run dev
# Start instance connected to staging server (note: changes go to prod DB)
yarn run dev:stage

For boba-backend run:

Terminal window
yarn run start-db
yarn run dev:watch

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 = "boba-frontend:*";
// Print all the debug logs
localStorage.debug = "*";