I'm curious about your setup. The FAQ touches on the potential for some issues, and a note about advanced features which won't work. If you have the time I'd like to hear about your setup/experiences. Thanks.
|Replies are listed 'Best First'.|
Re^3: Constructive thoughts on Dancer2 v Mojolicious
by alexander_lunev (Pilgrim) on Jun 16, 2020 at 10:16 UTC
I'm using Strawberry Perl, and in most cases I'm not using anything too complex or too UNIX-ish on Windows, at maximum I'm using fork. As for database, it's often SQLite DB (using Mojo::SQLite), there was once a project with database in DBF files, and now I'm writing a project with Firebird SQL server as a database (using DBD::ODBC and Firebird ODBC connector). Frontend is always some flavour of Vue.js.
To make things more like it's done on Windows, I'm using two files, START.CMD for starting whole project, which is:
Here's project structure:
Here you see that I rewrite %PATH% variable. It's my Electron-like application harness, in perl dir there's a stripped Strawberry Perl with modules to run on other Windows machines.
Then there is starter perl script, start_on_windows.pl:
When Morbo server started, script will start browser with URL of project, and voila. Also, there could be no black CMD.EXE windows at all with wperl.exe + WebSocket + Mojolicious trick:
When last client disconnects from WebSocket (browser window/tab with project closes) - server exits.