Repository contains Typescript+Angular 4 code building front side of the project.
This project was generated with Angular CLI version 1.4.7.
e2e
: End-to-End tests directory.src
: Main project source dirapp
: Main application source dirpage
: Directory connected with single page (logic + presentation)components
: Components used in pages, feature componentsmodel
: Data classes used in projectmain
: Application definitions, app componentservices
: Injectable services and providers
assets
: Page assetsenvironments
: Env declarations
.angular-cli.json
: main project config file.package.json
: dependencies config file also containing versioning, licensing and CLI-commands connected with project
Structure presented above is temporary. Watch out for updates.
- NodeJS 6.10+ LTS Download
- Angular CLI 1.2.7
npm install -g @angular/[email protected]
(It will install CLI tool globally in 1.2.7 version.)
-
Clone this repository
-
Go to root directory of repository (where
package.json
is located) and runnpm install
.
All of the project dependencies should fetched via npm. (this can take a while...) -
Run
ng serve --env=local
for a dev server. Navigate tohttp://localhost:4200/
. -
In case you want to use custom host and port, use
--host
and--port
flags.
Example:ng serve --configuration=local --host 0.0.0.0 --port 4201
The app will automatically reload if you change any of the source files.
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
.
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
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve
.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.