admui framework experience

When just getting started with admui framework does have some confused and do not know how to use, groping for some time after the discovery of this framework is very simple! Here are some of the pit I've ever met, summarize it!

1. The first step is to turn on the server using the framework, when I turned to the company to write the project is port 5000, according to the document began, cmd to open a command window, cd framework Path -> Enter then enter npm install -> Enter 

  npm start -> Enter, this way sometimes an error, the error is not specific in-depth study, because there are better tools to use webstrom only need to enter two lines of command to turn on the server, npm install ---> Enter

npm start ---> Enter

2. Today, after two lines of command reported a fault, Port 5000 requires elevated privileges, cause of the error is reported this himself before starting the IIS, IIS will occupy 80 ports, the solution is:

  cmd -> services.msc Use this command to open the service (you can also directly open the task manager to find the service) and then locate the Web Wide World  Publishing Service and then close it

There are many components in 3.admui is already packaged, we can directly use when writing project, we find the component in the document, and then according to the directory, open the .html file component that resides in the editor, in his page also introduced css, js files, copy and paste the part they need to own also Miang on it.

4. Project used in Note that if wanted to write a single page, you need to, html file in the directory views, come into their own css, js files need to be introduced, then you need to introduce css widget js file, public folder is a static resource, the back end is already configured static resource folder, so meeting all static resources placed under public directory, the path should be introduced when the '/images/xx.jpg', or ' /css/xxx.css'

Guess you like

Origin www.cnblogs.com/admui/p/11106891.html