How to create a localhost server to run an AngularJS project

前端 未结 13 835
迷失自我
迷失自我 2020-11-29 15:56

i have used Xampp and JetBrain WebStorm to run an AngularJS project. But it\'s complicated and low performance.Is there any other way to run an AngularJS project?

13条回答
  •  广开言路
    2020-11-29 16:28

    Python has a built-in command specifically for spinning up a webserver:

    Python3.x:

    python -m http.server 8000
    

    Other versions:

    python -m SimpleHTTPServer 8000
    

    Would start a webserver on port 8000

    (Python is a prerequisite to this; if you don't have python installed, the other answers may be easier)

提交回复
热议问题