DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Related

  • Multiplatform Directory Bookmarks on the Command Line
  • Hackerman [Comic]
  • 3 Easy Steps for a (Dev)Containerized Microservice With Jolie and Docker
  • Building an Enterprise CDC Solution

Trending

  • How To Develop a Truly Performant Mobile Application in 2025: A Case for Android
  • Endpoint Security Controls: Designing a Secure Endpoint Architecture, Part 2
  • Agile and Quality Engineering: A Holistic Perspective
  • Why High-Performance AI/ML Is Essential in Modern Cybersecurity
  1. DZone
  2. Data Engineering
  3. Databases
  4. Magic Terminal over Web Sockets and SignalR

Magic Terminal over Web Sockets and SignalR

What would a web based IDE be without a terminal component? Well, we no longer need to ponder that question since we've now got the Magic Terminal.

By 
Thomas Hansen user avatar
Thomas Hansen
DZone Core CORE ·
Jun. 01, 21 · Presentation
Likes (2)
Comment
Save
Tweet
Share
7.8K Views

Join the DZone community and get the full member experience.

Join For Free

Web based terminal access is one of those crucial components to have if you truly want to build your own DIY cloud system. The first time I came to appreciate web terminals, was with Digital Ocean's droplets, which gave me a web based terminal, allowing me to directly modify my server any ways I saw fit through my browser. Golly gosh that was a najs day.

With a web terminal, you've got all of these features "for free."

  • Git integration - Check
  • Installing new things on your server - Check
  • Configuring your server - Check
  • Running Python scripts - Check
  • Etc, etc, etc ... (Check, Check, Check)

Now of course the killer feature comes when combining the brand new terminal in Magic with the IDE I created last weekend. The combination of these two little components, more or less solves 80% of my problems related to (manually) creating Hyperlambda apps using Magic - Ignoring the fact that Magic automatically creates most of my code 80% of the time of course. Below you can see the CodeMirror based Hyperlambda IDE/editor in Magic, with syntax highlighting and autocomplete. Everything over a standard browser using Web Sockets and SignalR.

Sockets and SignalR

Now of course the terminal builds on top of web sockets and SignalR, to capture STD OUT and STD ERROR, which I then publish through a SignalR hub, such that subscribers interested in these events can render the output and error as it is occurring, live on the server, on the client/browser, through my wrapper around XTermJS. However, the sockets parts of Magic I will go through thoroughly in later articles, so to keep this article short and focused, I'll wrap up by demonstrating the terminal for you, if you're too lazy to download Magic for yourself.


Notice, both the SignalR wrappers and the Terminal component are a bit experimental as of this writing, and I might need to change the API in the future - So be aware of this in case you want to go berserk and try it out for yourself. If you're reading this article a month down the road though, you've got little to worry about, and feel free to go berserk as you see fit. Now all I'll need is GitHub actions integration, and I've basically got a complete DIY cloud and DevOps environment, entirely created on top of Open Sauce, possible to install through a simple Docker image on your own virtual machine. Below are all relevant links. Documentation might need some more massaging, but it should be fairly easily understood.

  • Documentation for the Magic Terminal
  • Documentation for Magic SignalR wrappers
  • Download Magic, its IDE and the Web Based Terminal
terminal

Opinions expressed by DZone contributors are their own.

Related

  • Multiplatform Directory Bookmarks on the Command Line
  • Hackerman [Comic]
  • 3 Easy Steps for a (Dev)Containerized Microservice With Jolie and Docker
  • Building an Enterprise CDC Solution

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!