How to create a localhost server to run an AngularJS project

前端 未结 13 813
迷失自我
迷失自我 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:16

    "Assuming that you have nodejs installed",

    mini-http is a pretty easy command-line tool to create http server,
    install the package globally npm install mini-http -g
    then using your cmd (terminal) run mini-http -p=3000 in your project directory And boom! you created a server on port 3000 now go check http://localhost:3000

    Note: specifying a port is not required you can simply run mini-http or mh to start the server

提交回复
热议问题