Skip to content

Latest commit

 

History

History
111 lines (72 loc) · 2.43 KB

File metadata and controls

111 lines (72 loc) · 2.43 KB

Foreg-site

Coverage Status

Reglementation en Foret. Application web Angular.

Install via NPM

npm install

Lancement en local (DEV)

npm start

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.

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 a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

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.

Install via docker

!!! Non adapter pour le développement de foreg-site

Téléchargement de l'image docker via le repository de github.

docker pull ghcr.io/ignf/foreg-site:{{ VERSION-TAG || 'vX.X.X'}}

Upm:;

Lancement de foreg-site via docker run :

docker run -p 8080:8080 ghcr.io/ignf/foreg-site:{{ VERSION-TAG || 'vX.X.X'}}

Le site est accesible via l'adresse : http://localhost:8080

Install via docker-compose

Scritp du docker-compose à adapter selon le besoin Local Build

services:
  foreg-site:
    build:
      context: .
      dockerfile: .docker/Dockerfile
      target: prod  # Utilise l'étape "dev" pour le développement
    ports:
      - "8089:8080"  # Expose le port nginx

Cloud Build

services:
  foreg-site:
    image: ghcr.io/ignf/foreg-site:{{ VERSION-TAG || 'vX.X.X'}}
    ports:
      - "8089:8080"  # Expose le port nginx

build

docker compose build

Running

docker compose up

Forcage du build avant de lancer l'application

docker compose up --build

Down

docker compose down