Richard, it's actually open source so you can do what you like with it 😊

There are two parts, there's the Java part with runs under TomEE (Tomcat with Java EE extension) and there's some RPG/SQL required on the back-end too.

The Java part is here https://bitbucket.org/fathert/webspi-java
the RPG/SQL part is here https://bitbucket.org/fathert/webspi-ibmi

They are separate because the target system doesn't have to be IBM i, other databases could be used with it too (simultaneously even).

I'm afraid the documentation is a bit rubbish because I haven't had the time to polish it, but feel free to ping me if you need any more info.

Tim.


________________________________
From: WEB400 <web400-bounces@xxxxxxxxxxxx> on behalf of Richard Schoen <Richard.Schoen@xxxxxxxxxxxxxxx>
Sent: 26 February 2018 15:48
To: web400@xxxxxxxxxxxx
Subject: Re: [WEB400] Express, React, Node.JS

Nice.

Don't suppose you have any samples of this in action I could use to work into a technical presentation.

I will change the names to protect the innocent.

Regards,

Richard Schoen
Director of Document Management
e. richard.schoen@xxxxxxxxxxxxxxx
p. 952.486.6802
w. helpsystems.com
------------------------------

message: 3
date: Mon, 26 Feb 2018 09:48:05 +0000
from: Tim Fathers <X700-IX2J@xxxxxxxxxxx>
subject: Re: [WEB400] [EXTERNAL] Re: Express, React, Node.JS

...our solution is to have a thin Java layer running under Tomcat on the IBM i which exposes SQL stored procedures in a sort of RESTful way, so that you can execute them by POSTing to a URL like this:
http://myibmi-d:8080/webspi/sp/default/SP_QryMthInvSts<http://ger400-d:8080/webspi/sp/default/W222_SP_QryMthInvSts> where (SP_QryMthInvSts is the stored procedure) with a JSON payload as the parameters: {"inputParms":{"YYYYMM_":201802,"STATUSFILTERS_":"!,W,U,N,D","PAGE_NUM_":1,"PAGE_SIZE_":20}}. The results sets are returned as a JSON object which always has the same structure regardless of which procedure was called. All of the business logic is written using SQL or RPG exposed as stored procedures which means people don't have to learn a new language or rewrite swathes of existing code in something new.

For the front-end we use Angular to create single-page web applications, which simply execute the stored procedures on the back-end and process the returned result sets to do their work.

Tim.

--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fweb400&data=02%7C01%7C%7Cfc4c088d49a44719776d08d57d281a39%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636552533541942056&sdata=ddTWBBoCaoJv5V%2F44mv%2Ffw25YGMXB%2BxER4OkWcKoJ9w%3D&reserved=0
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fweb400&data=02%7C01%7C%7Cfc4c088d49a44719776d08d57d281a39%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636552533541942056&sdata=ICSwTvrrIPRxUSaq8YujhCxB3OJCcWGZNMBFzLuTLsk%3D&reserved=0.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.