Guide applies to: modern

Steps

1. Authenticate to Sencha’s npm Registry

If you are a TRIAL customer

The Ext JS 30-day trial packages are available to install from public npm. Install the latest Ext JS version using the following command and skip to Step 2.

$ npm install -g @sencha/ext-gen

If you are an ACTIVE customer

Ext JS and all related commercial packages are hosted on Sencha’s private npm registry. Login to the registry using the following command which configures npm to download packages in the @sencha scope from Sencha’s registry.

Username Note:

The email and password used during support portal activation (after license purchase) will be used to login to Sencha’s NPM repo. The username is the same as the email used, however, the @ character is replaced with ‘..’ two periods. For example [[email protected]](https://docs.sencha.com/cdn-cgi/l/email-protection) converts to username: name..gmail.com

$ npm login --registry=https://npm.sencha.com/ --scope=@sencha

2. Create a New Ext JS Application

If you are new to Ext JS , or do not have an existing application, we recommend using the Sencha ExtGen tool to create a new Ext JS application. Use the following command to install Sencha ExtGen globally on your machine:

  1. npm install -g @sencha/ext-gen

3. Interactive Mode Option

Use the following command to help you with custom configuration:

  1. ext-gen app -i

4. Prompts for Configuration

Populate the following prompts :

  1. ext-gen app -i

starts generating the app:

Lab: NPM Package Sencha ExtGen - 图1

Accept the defaults for package.json name your app ModernTunes

Lab: NPM Package Sencha ExtGen - 图2

Choose selection from a list

Lab: NPM Package Sencha ExtGen - 图3

Choose moderndesktopminimal

Lab: NPM Package Sencha ExtGen - 图4

Name the package modern-tunes

Lab: NPM Package Sencha ExtGen - 图5

Take the default options for all remaining prompts
Approve the configuration …

Lab: NPM Package Sencha ExtGen - 图6

… and the build is created

Lab: NPM Package Sencha ExtGen - 图7

Navigate to your modern-tunes (cd to modern-tunes) folder and run the starting app

Lab: NPM Package Sencha ExtGen - 图8

A browser window is opened with the starting app loaded at port 1962

Lab: NPM Package Sencha ExtGen - 图9

These steps build the default ModernTunes app, you will overwrite it with your own app specifications in the next lab.