Using Termux to write html documents #42080
Replies: 1 comment
|
~ $ pkg upgrade && pkg upgrade It appears that directory '~/storage' already exists. Do you want to continue? (y/n) y |
|
~ $ pkg upgrade && pkg upgrade It appears that directory '~/storage' already exists. Do you want to continue? (y/n) y |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello good afternon, Ive been trying to create a webpage that would store data from an html form using termux. So far Ive managed to run the javascript code on termux using vim. The only problem I have is that google can not access the html file if i create it termux.
I can create a new text file and run node.js code to write data from an html form inside the termux terminal using vim. I can only view it from the terminal.
This website would act as a server from what ive been trying to do. This is mainly for testing purposes i understand that if i wanted to store more data i would need to migrate to a pc. For now i just want to test it.
The idea is that the user would enter their login details via my webpage node.js would create a textfile on my phone and store the data.
I cant run the html on google. Google can not find it.
The prodject uses HTML, CSS, Javascript, Node.js, termux as the emulator and vim as the editor.
I cant find any information online on how to give access to google in order to run the html file stored in termux. I found how to run google CLI but that is not what i want. I want to store everything locally and not on a server. I want google to load my page but data must be stored within my phone. Or later on my pc.
Im still new to this, i can explain in more detail if anyone is willing to help. I have pictures and the code and i can share the steps i took to get here.
So far the only thing i can come up with is chmod 777 com.termux
It still doesnt allow me to open the html file via google.
Potential idea to include a pkg that would allow me to root my phone without a pc
All reactions