This project was generated with Angular CLI version 11.2.12.
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.
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.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.
To avoid CORS run npm run start:proxy with proxy.conf to redirect you to localhost:8080 where your WS API is deployed.
To test prod build run npm run test:prod that will build your dist folder and run an http-server.
If you don't have http-server installed run npm i http-server -g.
Beware for simplification application will search complete API_URL from the localstorage for examplehttp://localhost:8080, to contact the web services.
Very easy with docker, Dockerfile contains everything to build and deploy against an nginx.
docker build . -t interview/factory-frontend:latest docker run --name frontend -d -p 4200:80 interview/factory-frontend:latest
Run docker ps and you should see your frontend container running.
Open your browser and launch your app on http://localhost:4200 as we redirected the ports to 4200.
Beware for simplification application will search complete API_URL from the localstorage for examplehttp://localhost:8080, to contact the web services.