Useful Commands
Frequently used commands. This is a helpful page to add to your Favorites. Here’s how to do so on Notion.
🚚 Running dev env
Section titled “🚚 Running dev env”For boba-editor and boba-components run (in the corresponding folders):
yarn run storybookFor boba-frontend run:
# 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:stageFor boba-backend run:
yarn run start-dbyarn run dev:watch🚢 Debugging Logs on Frontend
Section titled “🚢 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 editorlocalStorage.debug = "bobapost:*";
// Print only the debug logs related to embedslocalStorage.debug = "bobapost:embeds:*";
// Print only the debug logs related to Twitter embedslocalStorage.debug = "bobapost:embeds:tweet";
// Print all the debug logs minus those ending with -verboselocalStorage.debug = "bobapost:*,-bobapost:*-verbose";
// Print all the debug logs related to the UI ComponentlocalStorage.debug = "bobaui:*";
// Print all the debug logs related to the frontendlocalStorage.debug = "boba-frontend:*";
// Print all the debug logslocalStorage.debug = "*";