This project was generated with Angular CLI version 6.0.8.
ng serve for a dev server. Navigate to
http://localhost:4200/. The app will automatically reload if you change any of the source files.
ng generate component component-name to generate a new component. You can also use
ng generate directive|pipe|service|class|guard|interface|enum|module.
ng build to build the project. The build artifacts will be stored in the
dist/ directory. Use the
--prod flag for a production build.
Demo (This Angular stack is used for this demonstration of MEANie fullstack)
Make sure you have installed all of the following prerequisites on your development machine:
$ git clone https://github.com/weareopensource/Angular.git && cd Angular $ npm i
Running Your Application
npm startfor a dev server. Available at
npm run build:prodto build your client App
Both processes take into account all system environment variables defined under the form WAOS_FRONT_<path_toVariable>. A pre-build npm script turns under the hood those system environment variables into an object, infering paths from the varialbles name, merged to the environment object defined on environment.prod.ts to regenerate that file, regardless of the production or developement mode.
All configuration avalable on environment.ts file are overidable. You can for instance define the API server coordonates by defining those system environment variables: