android-js / androidjs

Platform to build android app using node js
MIT License
466 stars 109 forks source link

Let user choose PORT or change default PORT from 3000 #316

Open CelularBat opened 5 months ago

CelularBat commented 5 months ago

Is your feature request related to a problem? Please describe. AndroidJS uses port 3000 and some other Node modules also use port 3000 by default and it makes conflict. Yes - you can usually change port in other node modules to other number. However some hosting providers, like glitch.com are configured to always listen on port 3000 for app preview. Therefore I can't use both AndroidJS and ExpressJS modules and host such project online, because androidjs occupies the port which is traditionally reserved for listening to web app.

Describe the solution you'd like Change default port to another, or let user define the port.