FGAUTREAULT / FGAUTREAULT.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Factory

This project was generated with Angular CLI version 11.2.12.

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 Overview and Command Reference page.

Running dev proxy

To avoid CORS run npm run start:proxy with proxy.conf to redirect you to localhost:8080 where your WS API is deployed.

Running build prod

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.

Running with docker

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.

About


Languages

Language:HTML 48.3%Language:TypeScript 41.1%Language:JavaScript 8.2%Language:Dockerfile 2.1%Language:SCSS 0.3%