ArreevWeb
This project was generated with Angular CLI version 1.6.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.
IE11
in src/polyfills.ts uncomment the ES6 imports: /** IE9, IE10 and IE11 requires all of the following polyfills. **/
Installs
npm install @angular/material@latest --save
npm install @angular/cdk@latest --save
npm install --save @angular/animations
npm install --save hammerjs
npm install primeng --save
npm install --save font-awesome angular-font-awesome
npm install --save rxjs
npm install aws-sdk
npm install --save-dev @types/node
npm install --save-dev webpack json-loader
npm install --save amazon-cognito-identity-js
also: ngrx/store,ngrs/entity,...
Notes
tsconfig.app.json file add:
"types": ["node"]
in polyfills.ts, uncomment:
import 'web-animations-js'; // Run npm install --save web-animations-js
.
and install web animations api:
npm install --save web-animations-js
google maps types
npm install @types/googlemaps --save --dev
feature mmodules
https://angular.io/guide/feature-modules
PrimeNG CHANGE:
in /node_modules/primeng/components/chips/chips.js - comment out backspace delete code:
...Chips.prototype.onKeydown
...case 8:
Tools
https://github.com/ngrx/store-devtools
https://blog.schwarty.com/using-ngrx-store-devtools-with-the-angular-cli-a3b5f88f12e9
FB Rules
WAS: { "rules": { ".read": true, ".write": true } }
NOW: { "rules": { ".read": "auth != null", ".write": "auth != null" } }
Deploy
https://cloud.google.com/appengine/docs/standard/java/getting-started/hosting-a-static-website
- ng build --prod
- copy /dist contents to my.arreev.com/www
- cd /arreev/my.arreev.com
- gcloud app deploy --project arreev-web