We wrote a REST API in 4D and expose it with the built in web server.  The REST 
API serves up JSON docs formatted in Siren.  The API is documented in Swagger. 
On the front end we wrote an AngularJS application that talks to the REST API.

Advantages:
* If we wanted to we could implement the same API somewhere else and the front 
end would keep working. There isn't anything 4D-specific about the web app.
* Our customers can access the REST API directly and build their own tools (and 
a few of them are!).

Disadvantages:
* Creating a REST API in 4D is time consuming. There aren't any 
tools/frameworks to make this happen or to automatically generate 
documentation, etc.

I found these two books to be very helpful:
AngularJS Up and Running: http://shop.oreilly.com/product/0636920033486.do
RESTful Web APIs: http://shop.oreilly.com/product/0636920028468.do

Joshua Hunter
[email protected]
(425)673-1974
www.dwdev.com
Dataworks Development, Inc.
Providing secure and configurable data management solutions for research and 
clinical labs since 1987.


-----Original Message-----
From: 4D_Tech [mailto:[email protected]] On Behalf Of Keith Goebel
Sent: Monday, January 16, 2017 3:41 AM
To: 4D Tech Mailing List Technical
Subject: Website development path

Hi all.
Since our Java/Flash based website stopped working (something about Java not 
supporting ODBC anymore), our web developer is looking for the "best" option 
for a re-write in something else.
The question is what?

Apart from using Wakanda and 4D Mobile, or php, what other models are you guys 
using?
- are you using SQL to access the 4D data?
- if so, what tool(s) do you use to develop it with?
- what web server as the front end (Apache, NGINX, other)?

A fairly big ask I know...
TIA, Keith

**********************************************************************
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]
**********************************************************************
**********************************************************************
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