Hey Everyone, This is my first community post hope you like it!
I started learning Web development without having a pc. I only have an android phone which helped me to find various ways doing Front-end web developement on Android.
First you need to Install Termux, 'Acode editor'(I am using Paid one) and 'Files' App for this.
open termux and run pkg update and pkg upgrade
Then, run pkg install nodejs. After installing successfully, run npm i -g create-react-app and after that npx create-react-app App-name it will take few minutes.
After installed open Acode Editor, open side-bar and click on add folder, on the top there is a plus sign click that, it will open a pop up with two input fields.
On the first field write projects and click on second field, it will open file manager so make sure to open with the 'Files' app. Open sidebar scroll down you will see Termux, Click on that there will be your react app folder, Now at the botom there is a button 'allow permission to....' like that click on that, and the react app directory will be openedin Acode editor, Your can navigate files within.
To run the app go to Termux and write command cd App-name and then npm start Your react project would be live in localhost!
Thanks for reading, if you encounter any problem let me know!
Latest comments (23)
Files app is not available for Android 7, so i managed setting up an ssh server in termux and view the files in Acode, is there a better alternative?
I followed the steps but whenever I tried to create a react app I get an error saying, " the operation is not permitted by your operating system". I also tried using vite but I still kept seeing same error. Pls what can I do about it
Hi Korede and welcome to the Dev.to community.
Please take a moment to write a brief bio as it really helps people reading your comments to understand your perspective.
Kind regards Tracy
I tried this but my react app is showing blank page
If you want run react perfectly in termux, install Ubuntu using Andronix.
How?
I write the tutorial in my blog but Indonesian language Cara Install Distro Linux di Android
Thanks man.... Your article really helped me
npm ERR! cb() never called!
How resolution?
thank you very much, I used the same principle to create an application react native , but now imagine that I want to use Firebase, i have to do an npm command, where did i get it? after making cd App-name ?
Hi. You can try opening multiple sessions on Termux by swiping from left to right starting from the edge of your screen.
Thank you so much
Very helpfull
You see not everyone can afford a pcπ