I think it's a good approach. In my case I dived straight in to Sails and I can't go back now - but I would have been better off (given the time) if I had got(ten) a firm understanding of Express first.

On 27 Aug 2015, at 18:53, Kelly Cookson <KCookson@xxxxxxxxxxxx> wrote:

I found an interesting page in which Mike McNeil, the creator of Sails, says this:

"The way I see it, we're all in this together-- Sails is just focused at a different level of the stack. We look after the ORM (Waterline), WebSocket/session integration, and curate/normalize the basic middleware glue you need for most production work (i18n, csrf, etc). Jonathan, Doug, and the rest of the Express core team are doing an incredible job looking after critical performance and consistency issues across many different modules, esp. the Express router, cookie parser, body parser, etc."
http://www.quora.com/Should-one-learn-Express-js-or-Sails-js

Someone commented on the same page and reinforced what McNeil said:

"This is all a matter of what level of abstraction you want to work at. Sails.js actually depends on Express.js.
* Node.js ships with a very basic set of http libraries.
* Express.js wraps those http libraries and helps to enable things like routing, static serving, sessions, cookies, etc. But it really knows nothing about the DB.
* Sails.js wraps express and provides another higher level for doing things like connecting to the DB, auto-generating input pages, etc."

At the moment, I'm interested in things happening at the Express level of abstraction. I'm going to stick with Express for now. Assuming I can get it installed and working on our IBM i. ;-)

My sticking with Express for now reflects my particular learning path, nothing more. Our shop won't adopt node for production use without having a team look at what we need--including which JavaScript frameworks to adopt. I'm sure Sails will be on the list for consideration.

Thanks,

Kelly Cookson
IT Project Leader
Dot Foods, Inc.
1.217.773.4486 ext. 12676
kcookson@xxxxxxxxxxxx



-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Kevin Turner
Sent: Thursday, August 27, 2015 11:15 AM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] Which JavaScript framework would you recommend for IBM i?

And, of course, Sails - which augments Express.js but also includes many other nice bells and whistles ;)

On 27 Aug 2015, at 18:09, Kelly Cookson <KCookson@xxxxxxxxxxxx> wrote:

I decided that routing was my main concern with respect to JavaScript frameworks. If my shop is going to use node to develop and host a large number of web apps and RESTful HTTP services, then we need a structured way to manage all of those apps and services. I think routing capabilities within JavaScript frameworks could be one part of that structure.

Once I decided to focus on routing, I was able to do a few google searches and turn up many resources about routing using the Express.JS framework.

Thanks,

Kelly Cookson
IT Project Leader
Dot Foods, Inc.
1.217.773.4486 ext. 12676
kcookson@xxxxxxxxxxxx


-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Kevin
Turner
Sent: Tuesday, August 25, 2015 1:35 PM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] Which JavaScript framework would you recommend for IBM i?

Hi Kelly

Mainly because when I tried it I found it very easy to use - following various tutorials likes SailsCasts. As I also wanted to learn Angular and Bootstrap at the same time and the tutorials I was following included both. It also introduced me to other things like Express and Grunt, which I knew nothing about before (you have to try it to form an opinion - right?). It also uses a nice database solution (Waterline ORM) and has a default database that works straight out of the box (no extra config) which is great to get started/develop/test before switching to a more conventional database for production. Of course, Waterline does not yet support DB2 but the built in DB was good enough for my web socket server (websockets are also there out of the box - basically a Sails augmentation of socket.io). So now I have a decent node web socket server and I can talk to it from our Renaissance Framework by plugging in the sails.io.js client library.

I like it, but I haven't tried HapiJS so I cannot compare it.

Cheers
Kevin




-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Kelly
Cookson
Sent: 25 August 2015 19:05
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxx>
Subject: Re: [WEB400] Which JavaScript framework would you recommend for IBM i?

Kevin,

What led you to choose Sails.js?

Thanks,

Kelly Cookson
IT Project Leader
Dot Foods, Inc.
1.217.773.4486 ext. 12676
kcookson@xxxxxxxxxxxx



-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Kevin
Turner
Sent: Tuesday, August 25, 2015 11:34 AM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] Which JavaScript framework would you recommend for IBM i?

I am using Sails.js on the IBMi (which uses Express) and I am also using the IBM toolkit with it. I have basically been using Sails as a websocket server (as a FOC alternative to Lightstreamer).

-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Kelly
Cookson
Sent: 25 August 2015 17:20
To: web400@xxxxxxxxxxxx
Subject: [WEB400] Which JavaScript framework would you recommend for IBM i?

In exploring Node.JS on the IBM i, I will eventually want to learn about using a JavaScript framework for routing requests.

I know Express.JS is very popular. But I've also read pretty good things about Hapi.JS. I know there are other frameworks out there as well. I'm trying to figure out which framework to install on the IBM i.

Has anybody actually started using Express.JS, Hapi.JS, or a comparable framework on the IBM i?

I assume Express.JS, Hapi.JS, and comparable JavaScript frameworks would all be equally easy to use with the Node.JS toolkits that IBM has provided (that use XMLSERVICE). Is this assumption correct? I don't know what I don't know here.

Thanks,

Kelly Cookson
IT Project Leader
Dot Foods, Inc.
1.217.773.4486 ext. 12676
kcookson@xxxxxxxxxxxx<mailto:kcookson@xxxxxxxxxxxx>


--
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: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.


___________________________________________
This email has been scanned by iomartcloud.
http://www.iomartcloud.com/


________________________________

NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



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


CoralTree Systems Limited
Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton
Hampshire
SO15 2EA
VAT Registration Number 834 1020 74.
--
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: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.

--
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: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.


___________________________________________
This email has been scanned by iomartcloud.
http://www.iomartcloud.com/


________________________________

NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



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


CoralTree Systems Limited
Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton
Hampshire
SO15 2EA
VAT Registration Number 834 1020 74.
--
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: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.

--
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: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.


___________________________________________
This email has been scanned by iomartcloud.
http://www.iomartcloud.com/

________________________________

NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



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


CoralTree Systems Limited
Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton
Hampshire
SO15 2EA
VAT Registration Number 834 1020 74.
--
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: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.

--
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: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.


___________________________________________
This email has been scanned by iomartcloud.
http://www.iomartcloud.com/


________________________________

NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



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


CoralTree Systems Limited
Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton
Hampshire
SO15 2EA
VAT Registration Number 834 1020 74.

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.