> On 21 Nov 2016, at 17:28, Kirk Brooks <[email protected]> wrote:
> 
> First off - wow, very impressive and a fabulous demo db. I spent a few
> hours playing with it focusing mainly on how the HTTP server works. A
> couple of questions about this as well as one about the v3 update.

Hi Kirk,

Thank you for the kind words. It is an update I truly enjoyed working on.

>   - The purchase options are for v2.5. Does that include v3 or would I
>   need to buy 2.5 and the v3 update?

Thank you for notifying me. I have cleaned up the product options, so that it 
becomes more clear now. You can update from any previous version directly to 
version 3.0.

>  - In broad terms it looks like I can copy the 'HTTP Server' folder into
>   a database and then 'backfill' whatever methods are called by those
>   methods.

Correct. There are the “HTTPD_” project methods which are basically the HTTP 
server. Then there are the “WebApp_” project methods which demonstrate a 
routing handler written in 4D. But this is optional. It is something I wrote 
more than 10 years ago. It can also be replaced with the routing system of the 
NTK JavaScript framework.

>   - The javascript framework isn't dependent on Angular. (But a framework
>   is helpful.)

You can use your framework of choice for the front-end. It doesn’t really 
matter. AngularJS is a good choice and a popular one. But you can also use 
DHTMLX, Webix, React, Backbone, VueJS etc. There is plenty of choice in the 
JavaScript world, which can be a challenge figuring out what you need. It 
reminds me of learning Java 20 years ago; I don’t need 20 ways to write data to 
a file, just give me one way that works easy.

>   - What considerations come up if I attempt to put this into a component?

One thing to keep in mind is that the Request and Response classes of the NTK 
JavaScript framework depend on a few 4D process variables. Those process 
variables must be defined in the host database (not in the component), 
otherwise the plugin can not access them.

On a sidenote, the NTK JavaScript framework can also be used with 4D’s built-in 
webserver. All you need to do is handle these variables.

I’m not a big fan of 4D components. The idea is good, but the implementation … 
could be better. If we could edit and debug components directly from within the 
host database, that would make them more useful. The workflow of 
writing/using/testing them needs to be improved.

Please let me know if you have further questions.

Kind regards,

- Rob Laveaux

--------------------------------------------------------
Pluggers Software
Scholekstersingel 48
2496 MP  Den Haag
The Netherlands

Email: [email protected] <mailto:[email protected]>
Website: http://www.pluggers.nl <http://www.pluggers.nl/>

--------------------------------------------------------



**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to