Skip to content

Commit 19eecf1

Browse files
committed
changed Readme file
1 parent 7f890c5 commit 19eecf1

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

README.md

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,19 @@
88

99
##Introduction
1010

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).
1318

1419
## Steps to Run
1520
```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.
1924
```
2025

2126
## Directory Structure
@@ -104,7 +109,7 @@ angular2-MEAN
104109

105110
1. Angular 2 Quick Start application (Tours of Hero) from https://angular.io/docs/ts/latest/quickstart.html
106111
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.
108113
4. Gulp will monitor for the changes via help of watcher.
109114
5. Created folder structure for easy access of components, services and models.
110115
6. Applied tslint for avoiding any typos.
@@ -113,6 +118,14 @@ angular2-MEAN
113118
9. Added MongoDB support to communicate our Heroes data to Database
114119
10.Implemented Repository Pattern to communicate with Mongoose.
115120

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
127+
2. delete http://localhost:3000/api/heroes/:id <= delete hero
128+
116129
## Dependencies
117130

118131
1. Angular 2
@@ -124,9 +137,7 @@ angular2-MEAN
124137
7. TsLint
125138
8. MongoDB
126139

140+
## License
127141

128-
## UpComming
129-
130-
Presenlty mongoDB has been added but still need to wire up the heroes services to the DB.
131-
142+
MIT
132143

0 commit comments

Comments
 (0)