Prerequisite Preparation:
Build up the angular development environment.
1 Installing Visual Studio Code
Tutorial simple, not to ask the Niang
2 Installing the Chrome browser
Tutorial simple, not the fun of the Niang
3 Visual Studio code needs to be installed plug-in 3.1 Debugger for Chrome
For debugging angular apps directly in Google Chrome
3.2 Angular5 Snippets
Code generation plug-in, primarily used to quickly generate code in Vscode
4 chrome needs to install plug-in 4.1 augury plugin
For information about viewing angular apps in Google Chrome
4.1.1 access to the Google Plugin installation page
Click to go
4.1.2 Enter the ID of the Augury plugin
Augury Plugin ID ELGALMKOELOKBCHHKHACCKOKLKEJNHCD
Resources: Click to download
4.1.3 Install download Good augury plugin
Simply drag the downloaded plugin to the extension
4.1.4 Reference Blog: Click to go
5 Json-server Installation and use
Json-server is a tool that simulates background JSON data equivalent to Wiremock
Json-server supports the Get post delete put operation, and can automatically generate ID
5.1 Installation
NPM install-g Json-server
5.2 Creating a JSON file using 5.2.1
{ "users": [ { "name": "Wys", "id": "1234qasdfasdf", "pwd ":" 333 " }, { " name ":" WYC ", " id ":" asdfasdfq1234 ", " pwd " : "222" } ]}
5.2.2 executed in the same directory as the JSON file
Json-server JSON file
5.2.3 accessing Http://127.0.0.1:3000/in the browser to view API information
GET Request:
POST request:
6 Installation ANGULAR/CLI Error resolution
Perform NPM uninstall-g @angular/cli Uninstall
Perform NPM cache clean clear Caching
Perform NPM install-g @angular/cli Reinstall
Visual Studio code as a common plug-in installation for angular development tools, json-server installation and use, ANGULAR/CLI installation failure issues