Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: a simple web front end

by tobyink (Canon)
on Oct 27, 2020 at 21:42 UTC ( [id://11123235]=note: print w/replies, xml ) Need Help??


in reply to a simple web front end

Take a look at some of the MVC frameworks on CPAN. Dancer2 is probably a good one to start with. If you've been mostly using CGI scripts, your first few steps will likely be a steep learning experience, but it will be worth it.

Replies are listed 'Best First'.
Re^2: a simple web front end
by lis128 (Acolyte) on Oct 28, 2020 at 09:21 UTC

    i've heard already about Dancer, but all examples were self-contained, i.e Dancer started its own webserver and my goal was to take advantage of Apache's VirtualHosts in order to not tinker too much about threading, forking, handling whole protocol layer "by hand" and so on.
    Also, using webserver's name-based virtualhosts makes my "application" easliy scalable: for development purposes i can have it running on single machine, running single instance of apache on single 80 port, and separate front from back only when usage scenario will require it.
    However, i must admit that didn't took too much time to check Dancer's capabiliites.
    But if you said that it's wort to give a try, i at least check if Dancer's app can be embedded into Apache's CGI/PSGI

      Dancer2::Manual::Deployment shows how you can run Dancer2 apps via CGI, FastCGI, or PSGI. CGI, I really wouldn't recommend because it will perform horribly, but the other options should work fine. Another possibility it to run it standalone and use Apache mod_proxy to act as a frontend for it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11123235]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-03-28 17:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found