r/learnjavascript • • Sep 06 '20

I made a simple express server from my android phone with Termux and everyone in the lan can connect to my "mobile server"

Post image
220 Upvotes

14 comments sorted by

24

u/[deleted] Sep 06 '20

App: Termux

You can install node js with the command

pkg install nodejs

Create the express project as usual and use nano for editing the app.js

Do somebody knows a good IDE for mobile?

9

u/[deleted] Sep 07 '20

I've done this as well. You can even make a react app from termux.

2

u/Wortwal Sep 07 '20

Use vim with plugins you can make an ide

2

u/Falmz23 Sep 06 '20

Lol..... If you eventually find any pls lmk

2

u/wildmonkeymind Sep 07 '20

If you're on iOS there's play.js

1

u/[deleted] Sep 07 '20

install vim in termux or save the file inside of common folder (outside the android) for apps can access it.

7

u/itsmenish Sep 07 '20

but...why?

22

u/[deleted] Sep 07 '20

Because we can

-2

u/roqueadan Sep 07 '20

Pummmm!

1

u/QuickWrite Sep 07 '20

You could use something like this for things like file sharing and games (Games where you play together in a room (outside of the the COVID-19 situation).

It can be useful, but mostly it makes more sense if you set up a Server outside the local network for an app or website.

1

u/[deleted] Sep 07 '20

This. is. unexpected

1

u/CountsThis Sep 07 '20

I've counted 6,857 comments that started with 'This!' or 'This.'   

Live website | I only comment every 10 minutes due to rate-limiting. I do, however, keep counting even when I don't comment.

0

u/the-good-redditor Sep 07 '20

Tmux is a great app used to connect with server really cool