- Hands-On Full Stack Web Development with Angular 6 and Laravel 5
- Fernando Monteiro
- 217字
- 2021-07-23 19:18:54
Running the sample application
Now that we have started our project, we will run the built-in Angular CLI server to see how our application looks:
- Open VS Code in the project root to the chapter03 folder.
- For this example, we will use the integrated Terminal for the code; for this, click on the top menu in view, and then click Integrated Terminal.
- Type the following command in the Terminal:
npm start
You will see a message similar to the following:
** NG Live Development Server is listening on localhost:4200, open
your
browser on http://localhost:4200/ **
Date: xxxx
Hash: xxxx
Time: 16943ms
chunk {inline} inline.bundle.js (inline) 3.85 kB [entry] [rendered]
chunk {main} main.bundle.js (main) 20.8 kB [initial] [rendered]
chunk {polyfills} polyfills.bundle.js (polyfills) 549 kB [initial]
[rendered]
chunk {styles} styles.bundle.js (styles) 41.5 kB [initial]
[rendered]
chunk {vendor} vendor.bundle.js (vendor) 8.45 MB [initial]
[rendered]
- Behind the scenes, the Angular CLI will use the webpack module manager. Later in this book, you will see how to export and customize the webpack file.
- Now, go to http://localhost:4200 and check the result; you will see the welcome page from the boilerplate application that we created previously. You can find the code behind this page at src/app/app.component.html – it's our template.
Now, it's time to add a new module to our application.
推薦閱讀
- Cisco OSPF命令與配置手冊
- 計算機網(wǎng)絡(luò)安全實訓(xùn)教程(第二版)
- WordPress 5 Complete
- HTML5 Game development with ImpactJS
- 信息通信網(wǎng)絡(luò)建設(shè)安全管理概要2
- Mastering JavaFX 10
- 搶占下一個智能風口:移動物聯(lián)網(wǎng)
- Echo Quick Start Guide
- AIoT應(yīng)用開發(fā)與實踐
- Implementing NetScaler VPX?
- 走近奇妙的物聯(lián)網(wǎng)
- Building Microservices with Spring
- 物聯(lián)網(wǎng)商業(yè)設(shè)計與案例
- Hands-On Microservices:Monitoring and Testing
- CCNP TSHOOT(642-832)學(xué)習(xí)指南