Rally Software

 View Only
  • 1.  rally-app-builder development

    Posted Dec 21, 2017 03:50 AM

    Team,

    I am new to rally-app-builder development and fallowed step from github : GitHub - RallyApps/rally-app-builder: A Node.js command line utility for building apps using the Rally App SDK 

    npm version is 1.2.32

     

    Need help as after rally app builder installation (npm install rally-app-builder)

    I get fallowing error :
    C:\Softtag\Ruby\App>rally-app-builder init --name=myNewApp
    'rally-app-builder' is not recognized as an internal or external command,
    operable program or batch file.

     

    I tried it with npm 

    C:\Softtag\Ruby\App>npm -rally-app-builder init --name=myNewApp

     

    And get result as :


    This utility will walk you through creating a package.json file.
    It only covers the most common items, and tries to guess sane defaults.

    See `npm help json` for definitive documentation on these fields
    and exactly what they do.

    Use `npm install <pkg> --save` afterwards to install a package and
    save it as a dependency in the package.json file.

    Press ^C at any time to quit.
    name: (App) firstApp
    version: (0.0.0) 1.0.0
    description: test app
    entry point: (index.js) info.js
    test command: testit
    git repository: na
    keywords: yourApp
    author: sudhakr
    license: (BSD) open
    About to write to C:\Softtag\Ruby\App\package.json:

    {
    "name": "firstApp",
    "version": "1.0.0",
    "description": "test app",
    "main": "info.js",
    "scripts": {
    "test": "testit"
    },
    "repository": {
    "type": "git",
    "url": "na"
    },
    "keywords": [
    "yourApp"
    ],
    "author": "sudhakr",
    "license": "open"
    }


    Is this ok? (yes) yes
    npm WARN package.json firstApp@1.0.0 No readme data.

    C:\Softtag\Ruby\App>

     

    Now in app folder i cann't see supported file like html, js etc. Can some one suggest next step for me .

    Any reference for rally-app-builder development activity will great help.



  • 2.  Re: rally-app-builder development

    Posted Dec 21, 2017 04:24 AM

    Sudd,

     

    It seems like the Rally App Builder may not have been installed to be accessible globally.  It may be worth watching some of the videos by David Thomas about building Rally Apps.  They can be found here:

     

    Building Rally Apps - Basic Grid - YouTube 

     

    Also, you can check Stackoverflow for additional help:

     

    Newest 'rally' Questions - Stack Overflow 

     

    I'll also mention morky01 and corkr03 in this post as they will be able to provide further assistance.

     

    Hope that helps some...

     

    Michael



  • 3.  Re: rally-app-builder development

    Posted Dec 21, 2017 04:38 AM

    Thanks Michael Bulkeley for your reply.

    Requesting to please give me some referrence for your comment  (Rally App Builder may not have been installed to be accessible globally). That how can i verify the installation.

    Also i want to highlight iam working on windows machine.

    Hi morky01corkr03,

    Requesting to please help 



  • 4.  Re: rally-app-builder development

    Posted Dec 21, 2017 05:02 AM

    Sudd,

     

    I am not an expert in this and I am not using a Windows machine, but since your first post was that rally-app-builder was was not recognized I am assuming either you don't have access to it or it is not in your path.  Maybe is just needs to be added to your path?

     

    Kyle and Kristy work in the U.S., so it will be a bit before they see this, but I'll see if I can find any other information in the meantime.

     

    Michael



  • 5.  Re: rally-app-builder development

    Posted Dec 21, 2017 11:28 AM

    Yep, it sounds to me like it wasn't installed globally, but rather locally in whatever directory you originally ran the npm install rally-app-builder command.  The steps should be the same on either Windows or Mac, so that's probably not an issue here.

     

    Can you try running this command to install it globally?

     

    npm install -g rally-app-builder



  • 6.  Re: rally-app-builder development

    Posted Dec 21, 2017 11:29 AM

    It also sounds like you're using a fairly old version of npm.  Similarly, what version of node do you have?  I've had good luck with node 5+ and npm 3+.



  • 7.  Re: rally-app-builder development
    Best Answer

    Posted Dec 21, 2017 02:24 PM

    Here is what I did using Windows 7.  I hope my notes are helpful. 

     

    You can probably skip past the first section to create the Node shortcut.

    ********Then, I created a "NodeJS Command Prompt" 

     

    Installing Node/NPM

    You can grab any version you would like from https://nodejs.org/dist/
    For the version I used: https://nodejs.org/dist/v7.9.0/node-v7.9.0-win-x64.zip

     

    Option 1: Simply extract the zip file to C:\Users\YOURNBK\AppData\Local\Apps\node

    Option 2: extract the zip file to a folder you want that you have full access too

     

    I did Option 2 and created a folder and extracted to C:\Tools\Node

    I also created a new folder for my new app (one level up) C:\Tools\TestApp

    Then I installed rally-app-builder via CMD prompt 

    but you have to change the directory to where you extracted

    Then enter: npm install rally-app-builder

    Example: C:\Tools\node>npm install rally-app-builder

     

    Note: I may have used the NodeJS command prompt instead of regular CMD to install.  I can't remember which - regardless, you will need to change directory to where you extracted the node files to install rally-app-builder

     

    ********Then, I created a "NodeJS Command Prompt"

    1. Go to C:\Windows\System32
    2. locate CMD app and right click (send to desktop shortcut)
    3. locate shortcut "cmd.exe - Shortcut" on desktop
    4. right click and select properties of shortcut
    5. on ShortCut Tab - change Target field and Change Start In field
      1.  Target: C:\Windows\System32\cmd.exe /k "C:\Tools\node\nodevars.bat"
        1.  this is where you extracted the node app to C:\Tools\node\nodevars.bat
      2. Start in:C:\Tools\TestApp
        1. this is the directory of where you want to create and save application

    Select OK or Save

    Open Shortcut

    Command Prompt window should open

    Then enter into the prompt

     rally-app-builder init --name=MyTestApp --sdk=2.1

     

     

    example: C:\Tools\TestApp>rally-app-builder init --name=MyTestApp --sdk=2.1



  • 8.  Re: rally-app-builder development

    Posted Dec 27, 2017 04:23 AM

    Awesome. michael.addington 

    Really help full and it is working

    Thanks for the help.



  • 9.  Re: rally-app-builder development

    Posted Dec 27, 2017 12:57 PM

    COOL!  I am glad I could help.  It makes all the hassle of figuring it out a little bit more rewarding.