官术网_书友最值得收藏!

  • Electron Projects
  • Denys Vuika
  • 246字
  • 2021-06-24 12:14:41

Building an Electron application with Angular

This section assumes that you already have experience with the Angular framework. To find out more, please refer to the Angular Quickstart section at https://angular.io/guide/quickstart.

To get the application up and running fast, we are going to use the Angular CLI. The Angular CLI is a project that's maintained by the Angular team. It's described in the official documentation (https://angular.io/cli#cli-overview-and-command-reference) as follows:

The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold, and maintain Angular applications. You can use the tool directly in a command shell, or indirectly through an interactive UI such as Angular Console.

You can install the latest version of the Angular CLI through the NPM package manager. Typically, developers install it as a global tool so that they can generate a new project in any folder using the command-line tool or Terminal application.

To find out more about the Angular CLI, and globally get a list of all supported commands with a detailed explanation of what they do, please go to https://angular.io/cli.

Run the following command to install the CLI:

npm i -g @angular/cli@latest

The output should look similar to the following:

/usr/local/bin/ng -> /usr/local/lib/node_modules/@angular/cli/bin/ng
+ @angular/cli@7.3.8

The NPM package manager downloads and installs the Angular CLI and all its dependencies. Upon completion, it also registers a new global ng command that you can use anywhere.

Now, let's create our Angular project scaffold, which we will use with the Electron shell.

主站蜘蛛池模板: 安国市| 治县。| 望奎县| 恩平市| 安顺市| 永平县| 岚皋县| 九寨沟县| 松潘县| 菏泽市| 清苑县| 玉林市| 太谷县| 巧家县| 兴安盟| 芦溪县| 五大连池市| 广宗县| 康定县| 五台县| 德庆县| 九台市| 安福县| 华坪县| 白玉县| 富顺县| 哈巴河县| 布拖县| 安西县| 平安县| 叶城县| 新巴尔虎左旗| 石首市| 桂平市| 东阳市| 平乡县| 湾仔区| 竹溪县| 来安县| 安泽县| 达尔|