ng-zorro 完成的一个界面
This project was generated with Angular CLI version 1.3.1
git clone https://github.com/owen-carter/ng-zorro-admin.git
cd ng-zorro-admin
npm install -g @angular/cli
npm install
npm run start
please read the ./proxy.conf.json
{
"/api": {
"target": "http://localhost:3000",
"secure": false
}
}
sh ./deploy.sh deploy
upstream patent {
server 127.0.0.1:3000;
keepalive 2000;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name owen-carter.com;
root /usr/share/nginx/html/patent/;
location / {
# index.html;
}
location /api/ {
proxy_pass http://patent;
proxy_set_header Host $host:$server_port;
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
v1.0
v2.0