Comments (9)
we should definitely make sure to drop a message that started server should not be used on production 😄
from cli.
From Slack, complementing what @fmvilas suggested, I think we could also go further and enable collaboratively editing of AsyncAPI Files through the Studio, meaning some users could be editing the same file in real time.
Not sure if this is a very interesting feature or not, but just in case I drop here a chart I wrote explaining how we could achieve that in top of @fmvilas idea.
TL;DR: Use Localtunnel, a node package that exposes your localhost to anyone, giving you a public URL. This will expose the CLI WS server to any other remote Studio app.
Note that even though the service is hosted by them (loca.lt
Is the domain they give to all tunnels), the proxy server is available and can be deployed to our own premises and use our DNS as well, so domains could look like <random-id>-studio.asyncapi.io
. But this is something that I would not go for at least by now because it implies maintaining the service ourselves :).
from cli.
@smoya This looks super. I'd create a separate issue, otherwise, we risk not looking into this anymore after this issue is solved.
Note that even though the service is hosted by them (loca.lt Is the domain they give to all tunnels), the proxy server is available and can be deployed to our own premises and use our DNS as well, so domains could look like -studio.asyncapi.io. But this is something that I would not go for at least by now because it implies maintaining the service ourselves :).
If we ever deploy our own WebSocket server, we would not need the server on the CLI then. The CLI would be just another WS client, like the one on Studio, both connected to our production server. It would be interesting to see something like this deployed 😄
Not sure if it is ideal to force users to go always through our hosted server. This means people won't be able to edit offline, for example. Also to not overload the server unnecessary (same as for the api-server. See #78 (comment))
Anyway, I created a new issue so any discussion regarding that should be moved there: #104
from cli.
Right, but I understand that from the concept of the command 😄
from cli.
I was going to create another issue related to this but instead, I'm gonna reuse this one. I did a quick PoC on my machine with the asyncapi new
command:
Code.-.Studio.ts.cli.-.27.October.2021.mp4
I'll now extend it to asyncapi start studio
.
we should definitely make sure to drop a message that started server should not be used on production 😄
The server is not started on Studio but on the CLI. Studio just runs a WebSocket client :)
from cli.
The server is not started on Studio but on the CLI. Studio just runs a WebSocket client :)
Łukasz had in mind server-api to have local version of server to enable generation of templates etc, so as not to overload the server at api.asyncapi.com :)
from cli.
Oh yeah, definitely 👍
from cli.
@smoya This looks super. I'd create a separate issue, otherwise, we risk not looking into this anymore after this issue is solved.
Note that even though the service is hosted by them (loca.lt Is the domain they give to all tunnels), the proxy server is available and can be deployed to our own premises and use our DNS as well, so domains could look like -studio.asyncapi.io. But this is something that I would not go for at least by now because it implies maintaining the service ourselves :).
If we ever deploy our own WebSocket server, we would not need the server on the CLI then. The CLI would be just another WS client, like the one on Studio, both connected to our production server. It would be interesting to see something like this deployed 😄
from cli.
I'm closing this issue as it's already implemented in #102
from cli.
Related Issues (20)
- Implement new UI/UX improvements in config command
- Implement new UI/UX improvements in convert command HOT 1
- Implement new UI/UX improvements in generate command HOT 1
- Implement new UI/UX improvements in optimize command HOT 3
- Implement new UI/UX improvements in start command HOT 11
- Implement new UI/UX improvements in validate command HOT 1
- [BUG] CLI installation takes a lot of time HOT 5
- Support for multiple versions of generator HOT 14
- [BUG] Command generate fromTemplate brakes with MODULE_NOT_FOUND HOT 4
- [BUG] File name is not captured while creating new asyncapi.yml from using new command HOT 2
- [FEATURE] Adding a progress bar for CLI Commands to show the progress status HOT 2
- [FEATURE] New command to publish the result generated by generate and model command. HOT 1
- [FEATURE] New Command to format the Asyncapi document HOT 2
- Replace request by node-fetch HOT 1
- [BUG] generate fromTemplate fails since 1.13.0 HOT 4
- [FEATURE] Improve storage of `.asyncapi-analytics` config file HOT 7
- [FEATURE] Support ignore feature of optimizer HOT 2
- [BUG] latest download URL is not working HOT 7
- [FEATURE] Add support to change the collection type for arrays in Java models HOT 1
- [TEST] Incomplete log of tests executed for `bundle` command HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.