This project was generated with Angular CLI version 7.0.6., currently(2020.11.) runs on version 11.0.
The pupose of this repository, to have a base project to develope Angular projects.
Version updates are done regularly atleast with every main Angular release!
To get started locally, follow these instructions:
- Do neccessary installations. See instructions /NodeJs, Angular CLI, Git, IDE(WebStorm, VsCode, etc.)/
- If you haven't done it already, make a fork of this repo.
- Clone to your local computer using
git
. - Import into your IDE How to WebStorm, How to vscode.
- Run 'npm install'.
- Run 'ng serve'.
- Open your browser on http://localhost:4200/. You are done!
This project contains the followings:
-
angular-cli based project
-
angular material template
-
Jasmin & Karma unit test: Custom TestContext for confortable test writing, when the application expands.
-
different running profile: 'mock mode' to be able to run the application without backend services.
-
fully modular easily extendable
-
routing example with one module and two components
-
error page with handling service
-
common utils in shared module
-
snackbar support with notification service
-
REST client to fetch data fromm any HTTP REST source
-
pipes and util methods (Shared module)
-
and others.
Feel free to contact me, if you need more information.
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.
Furthermore ng serve -c mock
for a dev server, ng serve -c production
for a prod server.
OR
"npm start-mock"
"npm start-prod"
'angular.json' contains the defined script configuration.
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
.
Check Angular-cli references.
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.
Run ng test
or npm fulltest
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.