Termux For Programmers !

There may be times when you don't have a laptop or a computer ,

but you are in a urgent need to code. Even think that you don't 

have an active internet connection. I am here to solve this problem.

If you are a beginner, then most of the time you interact with the 

cmd or the terminal to execute the code with the help of commands.

Similarly, you can have the same environment in your phone with 

the help of an app "TERMUX" .

I have tried running python and javascript and in my usage the

experience was good.

STEPS :

1)Download the termux app from playstore.

2)In order to write the code, you need a text editor. I used vim editor .To install type the following command.

Command: pkg install vim

3)To run python and Javascript you need to install corresponding 
 environments.

4)To install python, use below command.

   Command: pkg install python

5)To install node , use the following command.

   Command: pkg install nodejs

Now that you have text editor and environment ready, you should 

start writing the code.

Use the commands below to write the code.

vim filename.py (for python files)

vim filename.js (for javascript files)

As soon as you the editor opens , you won't be able to write. You 

have to press i button to insert. Then write the code. Now press 

volume up+q , then you will see a window,click exit and then type 

:wq to save and exit. 

That's it , you are almost there . Use

python filename.py (to run python file)

node filename.js (to run js file)

Happy Coding !

Thanks for Reading!
    

Comments

Popular posts from this blog

Chrome Flags - The Heart Of Chrome .

Youtube - dl

OAuth - Open Authorization