Skip to content

Latest commit

 

History

History
91 lines (76 loc) · 2.14 KB

README.md

File metadata and controls

91 lines (76 loc) · 2.14 KB

homeManagement

J'ai eu une idée de projet qui soit une base de données qui me permette de répertorier tous les objets de ma maison avec pour chacun leur visualisation graphique .

Cet exercic avait pour but de mettre en pratique différentes compétences aquises :

  • La conception (MCD/MLD) de la base de donnée en utilisant Looping
  • Le developpement BackEnd en utilisant le framework SpringBoot en Java
  • Le developpement frontEnd en utilisant le framework Angular en TypeScript

Data base (Mysql) (conception tool looping)

image

To use it

  1. Download and install docker
  2. create a new folder and create a file called "docker-compose.yml" in that folder
  3. Copy and paste this docker compose text in your docker compose file
version: '3.8'

services:
  api:
    image: syfsa/homemanagement-api:v1
    ports:
    - "8080:8080"
    depends_on: 
      - db 
    environment: # Pass environment variables to the service
      SPRING_DATASOURCE_URL: jdbc:mysql://db:3306/homedb                                   
      SPRING_DATASOURCE_USERNAME: root
      SPRING_DATASOURCE_PASSWORD: root
    networks:
      - backend
      - frontend
    container_name: apiurl


  homemanagementfront:
    image: syfsa/homemanagement-front:v1
    ports:
      - "4200:4200"
    depends_on:
      - api
    networks:
      - frontend
      - backend


  db:
    image: mysql:5.7
    environment:
      MYSQL_ROOT_PASSWORD: root
      MYSQL_DATABASE: homedb
      MYSQL_PASSWORD: 
    volumes:
      - db-data:/var/lib/mysql
    networks:
      - backend  
    container_name: mysqlurl

  phpmyadmin:
      image: phpmyadmin:latest
      container_name: pma
      links:
        - db
      environment:
        PMA_HOST: db
        PMA_PORT: 3306
        PMA_ARBITRARY: 1
      ports:
        - 8001:80
      networks:
      - backend


volumes:
  db-data:


networks:
  backend:
  frontend:
  1. run this command in a cmd of the folder of docker-compose.yml
docker-compose up
  1. once finished successfully you can open the project on
localhost:4200