Trying to get this to work: Package used to build ESRI Web App Builder Apps for production.

1872
18
03-11-2019 02:45 PM
IanPeebles
Occasional Contributor III

I am trying to get this package to work, but having difficulties getting started.  I found out a new way on how improve the performance of WAB applications.  I was referred to this documentation:

https://github.com/gbochenek/esri-wab-build/

I see the steps to follow, but not able to get these commands to run in command prompt.  Which command prompt should I be using?

Are there any screenshots that somebody can provide, so I can follow along?

Would love to give this a try

My web app builder is installed at: C:\GIS\arcgis-web-appbuilder-2.11\WebAppBuilderForArcGIS

Any help will greatly be appreciated.

Tags (1)
18 Replies
RobertScheitlin__GISP
MVP Emeritus

Have you installed the prerequisites?

Requirements:

  • Bower (validated with 1.8.0) installation : npm install -g bower
  • Nodejs (validated with 6.9.4)
  • Java 7 or greater
  • Git

having WAB does not mean that you actually have node installed.

IanPeebles
Occasional Contributor III

Hello Robert,

I did install Nodejs yesterday afternoon.

Nodejs

Do I need to go to the following location to get Bower?  is that a local install as well?

https://bower.io/

I just ran the command:

Bower

I do have Java version 8 installed.

Java Version

I am not sure what Git is

I guess when I get all these components installed, I go to the command prompt?  That is where I am getting stuck.  Install instructions for the pre-requisites would be useful.

Thank you for your help.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Ian,

  Go to the windows start button and the "Node.js" folder and "node.js command prompt"

For bower go to the command prompt above and enter "npm install -g bower"

0 Kudos
IanPeebles
Occasional Contributor III

Robert, I have the nodejs command prompt:

Command Prompt

In the regular CMD prompt, I did install Bower:

Bower Install

So now do I go to the nodejs command prompt?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Just like I said in my last reply:

Go to the windows start button and the "Node.js" folder and "node.js command prompt"

0 Kudos
IanPeebles
Occasional Contributor III

OK, thanks for the help so far, this is a learning experience and something new for me.  Trying to document this as I go.  So when following the steps

1. Navigate to the application to be built (I go through the file structure):

There is no package.json, yet.

2. Create a project.json file (if one does not exist): npm init

or do I create the file manually like in a notepad++?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Do npm init and it will walk you through creating one.

0 Kudos
IanPeebles
Occasional Contributor III

OK, this is where I am getting stuck.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Ian,

   The window that you are showing in your screen capture is Not the "node.js command prompt"... that is the "Node.js" link you clicked on.

0 Kudos