Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

web-technology for tablet

by morgon (Priest)
on May 09, 2018 at 10:16 UTC ( [id://1214262]=perlquestion: print w/replies, xml ) Need Help??

morgon has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I am looking for some advice on how to proceed in setting up a web-application on an Android tablet.

What I have on the tablet is a debian-environment in Termux (see Termux for all your Perl-needs on Android), so I have a fully working cpan-client and can install any module.

What I want now is to have a way to communicate with perl-scripts running in this environment via chrome, so e.g. one use-case would be some web-page collecting user-input, running some script and returning a result to the browser.

This app would only be accessed by one user (me) from the same machine via e.g. 127.0.0.1:8888 or some other port, so security is of no concern to me and load would be minimal.

In the last years I have not been following the latest trends in web-development too closely and only have a rather cursory understanding of psgi and no overview of the ecosystem (I know that there are things like starman and starlet, but would not know which to choose).

So my question is: How do you go about such things nowadays?

I suppose Plack is the way to go, but would simply using plackup be good enough or would it be better to use Starman or some other psgi-aware server?

And should I use some framework (e.g. Dancer2 or Mojo) right from the start or would it be overkill for my rather simple needs?

Many thanks!

Replies are listed 'Best First'.
Re: web-technology for tablet
by haukex (Archbishop) on May 09, 2018 at 10:42 UTC
Re: web-technology for tablet
by Corion (Patriarch) on May 09, 2018 at 10:44 UTC

    Personally, I would look at Mojolicious or Dancer and using either their built-in server or Twiggy to get AnyEvent multiplexing. Using one of the other webservers feels like overkill because you expect the load to remain fairly low.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1214262]
Approved by marto
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-24 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found