[fpc-pascal] Developing a mini ERP / web based development

Darius Blaszyk dhkblaszyk at gmail.com
Fri Jun 28 00:55:08 CEST 2019


Thank you for the suggestions and tips.


> I can't inform you about fano.
>
I sent out a mail to the developer. Let's see what comes back. I think he
is also on this list. The demo fano-app did only crash here, see below:

Exception class : *ERouteHandlerNotFound*
Message : *Route not found. Method: GET Uri: /cgi-bin/app.cgi*


> Brook is a long-standing server platform for FPC.
>
Will have look at this tomorrow.


> pas2js is used as the basis for TMS Web Core (a commercial product for
> Delphi/lazarus. pas2js is meanwhile very mature. (I use it myself
> extensively :))
> You must use this if you wish to include a lot of browser-side
> functionality.
>
What do you mean, jQuery for instance? I have been trying to get pas2js
running today, but I was unsuccefull until now. All I get are empty (or
near empty) pages. I installed version 1.4.8 and setup the PATH env
variable to the bin folder. Compiling the demo's did result in the
following error:

webcompiler/demowebcompiler.lpr(6,27) Error: can't find unit "webfilecache"
Fatal: Compilation aborted
make: *** [Makefile:36: demowebcompiler] Error 6

The demo's that were compiled, I tried to open locally and from the cgi-bin
folder, but no succes. For instance the demobar example only shows:

TChartJS Create bar charts using Pas2JS & ChartJS (view source <demobar.lpr>
)

Also the nodejs hello world example mentioned on the wiki crashes. I have
no idea what goes wrong or how to debug.

$ pas2js -Tnodejs hello.pas
Pas2JS Compiler version 1.4.8 [2019/06/24] for Linux x86_64
Copyright (c) 2018 Free Pascal team.
Info: 5313 lines in 6 files compiled, 0.1 secs
$ nodejs hello.js
/hello.js:1
(function (exports, require, module, __filename, __dirname) { <script
type="application/javascript">
                                                              ^

SyntaxError: Unexpected token <
    at new Script (vm.js:79:7)
    at createScript (vm.js:251:10)
    at Object.runInThisContext (vm.js:303:10)
    at Module._compile (internal/modules/cjs/loader.js:657:28)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
    at startup (internal/bootstrap/node.js:283:19)


If it is for charity, you could try getting a TMS Web core license for free.
> Programming then becomes like creating a desktop program; drag&drop.
>
I will try and contact them. Thanks again for the tip.

Darius
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190628/f792cd98/attachment.html>


More information about the fpc-pascal mailing list