- Electron Projects
- Denys Vuika
- 326字
- 2021-06-24 12:14:41
Generating our Angular project scaffold
In this section, we are going to learn how to set up a new project that follows Angular's development practices. Let's get started:
- Run the following commands to generate a new Angular project called integrate-angular:
ng new integrate-angular
cd integrate-angular
The Angular CLI tool usually asks a series of questions to clarify what extra features you want to have in the resulting application.
- If you're asked about routing support, type Y and press Enter:
Would you like to add Angular routing? (y/N)
Y
- Next, if the tool asks you about the stylesheet format, choose SCSS, as shown in the following code:
Which stylesheet format would you like to use? (Use arrow keys)
SCSS
- The output of the preceding code is as follows:

Note how the Angular CLI generates a set of files for you. The tool provides you with various ignore rules for NPM and Git inside the .gitignore file, configuration files for Typescript and the Karma test runner, and even a set of unit and end-to-end tests as part of the initial scaffold.
- Check out what the package.json file looks like, especially its general information and the scripts section:
{
"name": "integrate-angular",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
}
- The Angular CLI also performs dependency library installation, so all you need to do is run the following command to get your web application up and running:
npm start
Historically, every web app that we generate with the help of the Angular CLI runs on port 4200 by default. You can quickly change the port in the future, but for now let's stick to the defaults.
- Launch your preferred browser and navigate to http://locahost:4200. You should see a landing page called Welcome to integrate-angular! that the Angular CLI has created for you:

Now, let's configure the Electron shell so that it works with Angular code.
- scikit-learn Cookbook
- INSTANT Mock Testing with PowerMock
- Web程序設計及應用
- 解構產品經理:互聯網產品策劃入門寶典
- Essential Angular
- 名師講壇:Spring實戰開發(Redis+SpringDataJPA+SpringMVC+SpringSecurity)
- Learning Python Design Patterns
- 西門子S7-200 SMART PLC編程從入門到實踐
- 軟件測試實用教程
- 自學Python:編程基礎、科學計算及數據分析(第2版)
- Bootstrap for Rails
- Python 3 數據分析與機器學習實戰
- SQL Server 入門很輕松(微課超值版)
- 硬件產品設計與開發:從原型到交付
- Java EE 7 with GlassFish 4 Application Server