angular

一个angular的开发脚手架。angular+ng-zorro-antd+koa2+proxy

Stars
10

Oniangular

apptokentoken sessionwebapp tokon Angular CLI version 1.5.3. koatokenhttpapi

1ng serveng4200 koa2node1336 koa-proxy2

app.use(async(ctx, next) => {
console.log(`Process ${JSON.stringify(ctx.request.method)} ${ctx.request.url}...`);
//token
await next();
//
});

42001336 koa2koa2-cors 2src\app\config\td-config.ts``this.serveUrl = '' ng build src\distkoa-proxy.jsbuild buildnodenodemon npm install``nodemon koa-proxy

0gitclone 
1 `npm i`.
2`src\app\config\td-config.ts``koa-proxy.js`
2 `ng serve` angular
3 `nodemon koa-proxy` 

0`src\app\config\td-config.ts``this.serveUrl = ''`
1 `ng build` 
2`src\dist` `koa-proxy.js``src\build`
3buildnodenodemon
4`npm install``nodemon koa-proxy`. 

UING-ZORRO NG-ZORROAnt Design Angular^5.0.0

BUG

ISS:https://github.com/xiaohuoni/angular/issues

angularREADME

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

This project was generated with Angular CLI version 1.5.3.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.