README.md 1.1 KB
Newer Older
URMAS SINISALU's avatar
URMAS SINISALU committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
NlibFront
This project was generated with Angular CLI version 8.1.3.

Building Docker
docker build -t docker.texta.ee/texta/nlib-api:latest -f docker/Dockerfile .

Running in Docker
sudo docker run -p 4200:80 -e NLIB_API_URL=http://localhost docker.texta.ee/texta/nlib-front:latest

Setup
Install node
Run npm install -g @angular/cli for Angular CLI
Run npm install for project dependencies.

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.