This project was generated with Angular CLI version 11.0.2.
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.
Clone colisnc-borne
project locally abd install the dependencies.
git clone https://github.com/adriens/colisnc-borne.git
cd colisnc-borne
npm install
Run production build in project directory. The build artifacts will be stored in the dist/
directory.
ng build --prod --output-path=dist
Build colisnc-borne
image with the -t argument to define the name of the image.
The second argument (".") defines the location of the Dockerfile.
This command can take a while because images have to be downloaded and the angular app has to be compiled.
docker build -t colisnc-borne .
Pull colisnc-api
image with lastest
tag.
docker pull rastadidi/colisnc-api:latest
Once the images are built or pulled.
Run colisnc-api
image with -p to define a port mapping.
docker run -d -p 8080:8080 rastadidi/colisnc-api:latest
Run colisnc-borne
image with -p to define a port mapping.
docker run -d -p 8081:8080 colisnc-borne
Navigate to http://localhost:8081/
.
Run containers in the background.
docker-compose up -d
docker ps