Skip to main content

Coding with Stackblitz on my Android mobile device

In the past I would have blogged about my experience coding on my mobile with tech like Termux, NodeJS, MariaDB, Hugo, and Firebase. I am always looking for ways to code on my android mobile. This time I am experimenting with Stackblitz. Stackblitz is an online code editor for web apps and powered by Visual Studio Code. Below has been my experience getting started.

I chose the free tier and signed in to stackblitz.com using my GitHub account. I created a typescript project. Stackblitz website is very user friendly. Next I looked for a good tutorial on youtube.

You can debug using chrome dev tools but looks like this is not available on chrome mobile.

I have seen stackblitz being compared to glitch.com and codesandbox.io and I am guessing that there are others out there.

There is an option to deploy to Firebase from within stackblitz but I don't want to trust stackblitz with my firebase just yet.

I downloaded my typescript project and headed over to termux. I then had the following question.


If I view source the stackblitz preview there is no html in the body tag but some script tags to load javascript files. Which leads me to say that stackblitz has their specific build and serve process and chances are you will have to modify your projects to build locally which could bring problems.

Next, I needed to figure out how to select over multiple lines. This would have been a deal breaker. I do have a wireless keyboard but then I would need a USB adapter for the dongle. But I prefer to not have to use a keyboard. I asked the question on stack overflow but I figured it out myself before someone could answer.


The other thing I need to figure out is how to uplaod project files. I can connect my github but I prefer not do that as yet. On your desktop you can drag and drop files but on android that is not an option.

I would love to see online developer environments like this progress. Maybe all you have is a tablet or chromebook or mobile. I can see me using this to test and demo code but I would need to learn more to decide on using for production web app. I would have to plan and test my deployment process first. Then consider support for unit testing. Let's say I wanted to develop a CRUD web app using Stackblitz, React, Express, Heroku and PostgreSQL. How would that work?

I read that Stackblitz now supports SQLite3. That would be one way to create a quick CRUD demo.

Comments

Popular posts from this blog

Below the surface

This is a chapter from my eleventh book called Quotation Marks Sparks . __________ "You can't stop the waves, but you can learn to surf." - Jon Kabat-Zinn __________ I was looking at quotes that hit hard and this quote stood out to me. It seems mundane and obvious and often repeated. Life is about how we respond to the inevitable. It is not what happens to us but how we respond. I had to ask myself to dig deeper and look below the surface. Then I saw that when we surf we really become the waves. We become friends with the waves. The waves and us are the same. Further, the waves are created by us and in our heads. We can control the waves because who can surf all the time? Sometimes we just have to come to shore and build sand castles on shore. I asked my friend Gemini for feedback and he said that I was right, the Jon Kabat-Zinn quote initially seems like a simple call for resilience, but my deeper dive reveals profound layers. The idea that we can move beyond merely rea...

Thankful

It is 617pm and I have decided to write. Right now I am thankful. The cool of the evening has replaced the heat of the day. I took a bath and changed and now I am just relaxing. Sometimes I complain. Not often. But I feel bad afterwards because there is so much to be thankful for. There is always room for improvement and we have to identify the things for improvement and change is often good but we do not have to make it into complaints. Yeah I get it. Life is hard and none of us has it easy. Look on the bright side of things. And sometimes it is the little things that remind us that life is good. Things that we take for granted. Like I was coming in the maxi taxi today and heard a gospel song that was about gratitude. God does appreciate a grateful heart. Trinidad and Tobago celebrated sixty four years of independence yesterday and if we stop and listen to the many complaints we would swear we are living in the worst country in the world. That is not the case. We do get a lot of thing...

Installing NodeBB using Termux

This is the ChatGPT prompt I used to be guided Guide me through installing NodeBB using Termux (This took some time and patience to troubleshoot errors and implement workaround) pkg update && pkg upgrade -y pkg install proot-distro git curl wget nano -y proot-distro install debian proot-distro login debian apt update && apt upgrade -y apt install -y curl git build-essential ca-certificates gnupg apt update apt install -y imagemagick apt install -y redis-server redis-server --daemonize yes redis-cli ping mkdir -p /opt git clone https://github.com/NodeBB/NodeBB.git /opt/nodebb cd /opt/nodebb ./nodebb setup warn: NodeBB Setup Aborted.  Error: Could not load the "sharp" module using the android-arm64 runtime Possible solutions: - Manually install libvips >= 8.18.3 Force node to report platform as linux to get sharp to install curl -LO https://nodejs.org/dist/v22.23.1/node-v22.23.1-linux-arm64.tar.xz tar -xJf node-v22.23.1-linux-arm64.tar.xz mv node-v22.23.1-lin...