You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-10Lines changed: 21 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,14 +8,19 @@
8
8
9
9
##Introduction
10
10
11
-
Basic Angular seed application created with Quick start application given on angular website. It uses Express server along with Mongo DB support (Mongoose) via a wrapper of Repository Pattern as Business layer.
12
-
It also uses Gulp for copying our resources.
11
+
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.
12
+
It also uses Gulp for running task and TsLint.The seed application is built over node and uses latest node packages.
13
+
14
+
## Prerequisites
15
+
16
+
1. Latest version of Node to be installed.
17
+
2. Install MongoDB and make sure it is running on default port 27017 (if not then please configure constants.ts and change the connection for mongoDB).
13
18
14
19
## Steps to Run
15
20
```sh
16
-
npm install
17
-
npm build
18
-
npm start
21
+
npm install<= install all the npm Dependencies
22
+
npm build<= build client and server application.
23
+
npm start<= start the Nodemon and watch for changes.
19
24
```
20
25
21
26
## Directory Structure
@@ -104,7 +109,7 @@ angular2-MEAN
104
109
105
110
1. Angular 2 Quick Start application (Tours of Hero) from https://angular.io/docs/ts/latest/quickstart.html
106
111
2. Added support for Gulp so that js files are moved out of the app folder.
107
-
3. It will create a build folder where it will place all the js files.
112
+
3. It will create a dist folder where it will place all the js files.
108
113
4. Gulp will monitor for the changes via help of watcher.
109
114
5. Created folder structure for easy access of components, services and models.
110
115
6. Applied tslint for avoiding any typos.
@@ -113,6 +118,14 @@ angular2-MEAN
113
118
9. Added MongoDB support to communicate our Heroes data to Database
114
119
10.Implemented Repository Pattern to communicate with Mongoose.
115
120
121
+
## Api Document (from MongoDB)
122
+
123
+
1. getAll http://localhost:3000/api/heroes <= get all heroes
124
+
1. getById http://localhost:3000/api/heroes/:id <= get hero by Id
125
+
2. post http://localhost:3000/api/heroes <= create hero
126
+
2. put http://localhost:3000/api/heroes/:id <= update hero
0 commit comments