我有一个可以在Apache上跑的静态angular项目,想在想把它迁移到node环境里去,不知道该怎么写node的server.js和page.json.
我有一个可以在Apache上跑的静态angular项目,想在想把它迁移到node环境里去,不知道该怎么写node的server.js和page.json.
用 nokit,一行命令:
$ cd <angular项目目录>
$ nokit start <port> -public:./
更详细的用法,查看 http://nokit.org
嘿嘿,试试sero-cli吧,第二项“Start a static web server for current working directory”,在你的angular项目根目录里使用这个命令,选第二项就可以了。
用KOA这么写就行
/app.js
/public/index.html //angular入口