AngularJS 2 (更新至 4.2.0) 使用 Angular2、Gulp、Express、Node、MongoDB (Mongoose) 以及仓库模式业务层的 Mean Stack 应用
AngularJS 2 (更新至 4.2.0) 使用 Angular2、Gulp、Express、Node、MongoDB (Mongoose) 以及仓库模式业务层的 Mean Stack 应用
##Introduction
Basic Angular seed application created with Quick start application (Tour of Heroes) given on angular website. It uses ExpressJS along with Mongo DB support (Mongoose) via a wrapper of Repository Pattern as Business layer. It also uses Gulp for running task and TsLint.The seed application is built over node and uses latest node packages.
npm install ts-node -g
npm install typescript-node -g npm install <= install all the npm Dependencies
npm run build <= build and compile the dest folder
npm run deploy <= start the Nodemon and watch for changes.…1. getAll http://localhost:3000/api/heroes <= get all heroes
1. getById http://localhost:3000/api/heroes/:id <= get hero by Id
2. post http://localhost:3000/api/heroes <= create hero
2. put http://localhost:3000/api/heroes/:id <= update hero
2. delete http://localhost:3000/api/heroes/:id <= delete hero
MIT
暂无开放 Issues,或尚未同步最近议题。