Skip to content

Commit 52a1a6d

Browse files
author
Narek
committed
Angular version updated
1 parent 221fc8f commit 52a1a6d

File tree

3 files changed

+60
-32
lines changed

3 files changed

+60
-32
lines changed

Diff for: README.md

+25-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# Node - Mongo - Angular4
2-
3-
The Angular part was generated with [angular-cli](https://github.com/angular/angular-cli).
1+
# Node - Mongo - Angular4 Starter
42

53
## Development server
64
Run `npm start` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
@@ -15,3 +13,27 @@ Run `npm run production` to generate a static files from Angular project and ser
1513
## Build
1614

1715
Run `npm run build` to build the project. The build artifacts will be stored in the `server/dist` directory.
16+
17+
## Project general structure
18+
19+
├── server # The whole API folder
20+
├── api # Project Moules(Route Handlers, Mongoose Models), the modules are collected automatically, and inserted into the API
21+
├── bin # Project start point
22+
├── config # Config files
23+
├── lib # Libs used - express, mongoose
24+
├── src # Angular application source
25+
├── app # Angular App
26+
├── components # All the Angular's structure components
27+
├── guards # Guards(Auth)
28+
├── routing # Application Routing
29+
├── services # Services(Request)
30+
├── Request # Responsible for making get, post requests to the API.
31+
├── app.component.ts # App's first component
32+
├── app.component.html # App's entry template
33+
├── app.component.spec.ts # Component's unit tests
34+
├── app.component.css # Css for the component
35+
├── app.module.ts # The root module that you bootstrap to launch the application
36+
├── assets # App assets, Here we can place public files
37+
├── environments # Production and development environments
38+
39+
The Angular part was generated with [angular-cli](https://github.com/angular/angular-cli).

Diff for: angular-cli.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@
2121
"styles.css"
2222
],
2323
"scripts": [],
24+
"environmentSource": "environments/environment.ts",
2425
"environments": {
25-
"source": "environments/environment.ts",
2626
"dev": "environments/environment.ts",
2727
"prod": "environments/environment.prod.ts"
2828
}
29+
2930
}
3031
],
3132
"addons": [],

Diff for: package.json

+33-28
Original file line numberDiff line numberDiff line change
@@ -7,43 +7,48 @@
77
"ng": "ng",
88
"start": "ng serve",
99
"build": "ng build",
10+
"buildPROD": "ng build --prod",
1011
"api": "node server/bin/app",
11-
"production": "npm run build && node server/bin/app",
12+
"production": "npm run buildPROD && node server/bin/app",
1213
"lint": "tslint \"src/**/*.ts\"",
1314
"test": "ng test",
1415
"pree2e": "webdriver-manager update --standalone false --gecko false"
1516
},
1617
"private": true,
1718
"dependencies": {
18-
"@angular/common": "^2.3.1",
19-
"@angular/compiler": "^2.3.1",
20-
"@angular/core": "^2.3.1",
21-
"@angular/forms": "^2.3.1",
22-
"@angular/http": "^2.3.1",
23-
"@angular/platform-browser": "^2.3.1",
24-
"@angular/platform-browser-dynamic": "^2.3.1",
25-
"@angular/router": "^3.3.1",
19+
"@angular/animations": "^4.2.4",
20+
"@angular/common": "^4.2.4",
21+
"@angular/compiler": "^4.2.4",
22+
"@angular/core": "^4.2.4",
23+
"@angular/forms": "^4.2.4",
24+
"@angular/http": "^4.2.4",
25+
"@angular/platform-browser": "^4.2.4",
26+
"@angular/platform-browser-dynamic": "^4.2.4",
27+
"@angular/router": "^4.2.4",
28+
"bootstrap": "^3.3.7",
2629
"core-js": "^2.4.1",
27-
"rxjs": "^5.0.1",
28-
"ts-helpers": "^1.1.1",
29-
"zone.js": "^0.7.2"
30+
"rxjs": "^5.4.2",
31+
"zone.js": "^0.8.14"
3032
},
3133
"devDependencies": {
32-
"@angular/compiler-cli": "^2.3.1",
33-
"@types/jasmine": "2.5.38",
34-
"@types/node": "^6.0.42",
35-
"angular-cli": "1.0.0-beta.24",
36-
"codelyzer": "~2.0.0-beta.1",
37-
"jasmine-core": "2.5.2",
38-
"jasmine-spec-reporter": "2.5.0",
39-
"karma": "1.2.0",
40-
"karma-chrome-launcher": "^2.0.0",
41-
"karma-cli": "^1.0.1",
42-
"karma-jasmine": "^1.0.2",
43-
"karma-remap-istanbul": "^0.2.1",
44-
"protractor": "~4.0.13",
45-
"ts-node": "1.2.1",
46-
"tslint": "^4.0.2",
47-
"typescript": "~2.0.3"
34+
"@angular/cli": "1.4.0",
35+
"@angular/compiler-cli": "^4.2.4",
36+
"@angular/language-service": "^4.2.4",
37+
"@types/jasmine": "~2.5.53",
38+
"@types/jasminewd2": "~2.0.2",
39+
"@types/node": "~6.0.60",
40+
"codelyzer": "~3.1.1",
41+
"jasmine-core": "~2.6.2",
42+
"jasmine-spec-reporter": "~4.1.0",
43+
"karma": "~1.7.0",
44+
"karma-chrome-launcher": "~2.1.1",
45+
"karma-cli": "~1.0.1",
46+
"karma-coverage-istanbul-reporter": "^1.2.1",
47+
"karma-jasmine": "~1.1.0",
48+
"karma-jasmine-html-reporter": "^0.2.2",
49+
"protractor": "~5.1.2",
50+
"ts-node": "~3.2.0",
51+
"tslint": "~5.3.2",
52+
"typescript": "~2.3.3"
4853
}
4954
}

0 commit comments

Comments
 (0)