-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cli): add new serve command for Botonic 1.0 under flag --preview #1721
Conversation
44174a0
to
68f9f90
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice to have this preview of Botonic 1.0!! 🥳
Some things to be reviewed/changed though 😉
e1cb658
to
7c80110
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one last comment, the rest LGTM! 🚀
try { | ||
await pgs.start() | ||
} catch (e) { | ||
console.log("Couldn't start the Playground service: ", e) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no need to add here the try/catch
since the start
method has already one inside and does not rethrow the exception if it fails.
7c80110
to
8816308
Compare
Description
Updated
botonic serve
command for Botonic 1.0. The new functionality can be activated with the flag--preview
or-p
:It launches 3 servers concurrently:
In the future it will launch another server for the webviews.
One of the main features is the linking of the local dev server (API) directly with messaging apps like Whatsapp or Telegram. In order to do that, we generate a local tunnel and send its public URL to the new Botonic Playground API, which manages the direct connection with messaging apps.
Context
With this new command, developers can now try their local botonic projects on Whatsapp and other platforms without the hassle of creating any accounts. This allows them to learn Botonic much faster and be more productive when building their projects.
To document / Usage example
botonic serve --preview
Testing
The pull request...