angular.js - How to deploy angular static web pages to node
大家讲道理2017-05-15 16:55:19
0
5
580
I have a static angular project that can run on Apache, and I want to migrate it to the node environment. I don’t know how to write node’s server.js and page.json.
Put it directly in the static file. After use, just access the static page address directly. This is how this game works http://tianmaying.com/app/collect-b/index.html
Hey, try sero-cli. The second item is "Start a static web server for current working directory". Use this command in the root directory of your angular project. Just select the second item.
Just write it like this in KOA
/app.js
/public/index.html //angular entrance
Use nokit, one line of command:
For more detailed usage, check http://nokit.org
Put it directly in the static file. After use, just access the static page address directly. This is how this game works
http://tianmaying.com/app/collect-b/index.html
express
Hey, try sero-cli. The second item is "Start a static web server for current working directory". Use this command in the root directory of your angular project. Just select the second item.