diff --git a/.env.example b/.env.example index a2e1b0c..3a66661 100644 --- a/.env.example +++ b/.env.example @@ -1,7 +1,10 @@ -SERVICE_ORIGIN -DB_HOST -MARIADB_USER -SERVICE_SECRET_KEY -MARIADB_PASSWORD -MARIADB_ROOT_PASSWORD -MARIADB_DATABASE \ No newline at end of file +DB_HOST=database +MARIADB_USER=root +# openssl rand -hex 32 +SERVICE_SECRET_KEY=xxxx +# openssl rand -hex 12 +MARIADB_PASSWORD=xxxx +# openssl rand -hex 12 +MARIADB_ROOT_PASSWORD=xxxx +MARIADB_DATABASE=bookshelf +SERVICE_ORIGIN=http://localhost:8080 \ No newline at end of file diff --git a/README.md b/README.md index 6d191bf..5d3d671 100644 --- a/README.md +++ b/README.md @@ -3,27 +3,22 @@ Ce projet est un gestionnaire de base de données pour la bibliotèque de la mai L'outil permet l'ajout, la modification, la suppression et de consulter les livres présents dans la base de donnée. -## Deploiement +## Développement local ### Avec Docker Compose ```sh -docker-compose up --build -d +docker compose -f docker-compose.dev.yml down -v +docker compose -f docker-compose.dev.yml up -# Init database +# Init database (if database not initialized) docker-compose exec database mariadb -u root -p $>source /docker-entrypoint-initdb.d/*.sql - -# SSL https://certbot-dns-ovh.readthedocs.io/en/stable/ -# Create certificates -certbot certonly --dns-ovh --dns-ovh-credentials ~/.secrets/certbot/ovh.ini -d home.aldon.fr ``` -# Set env variables inside secrets action +## Déploiement ```sh -SERVICE_ORIGIN -DB_HOST -SERVICE_SECRET_KEY -MARIADB_USER -MARIADB_PASSWORD -MARIADB_ROOT_PASSWORD -MARIADB_DATABASE -``` \ No newline at end of file +# SSL https://certbot-dns-ovh.readthedocs.io/en/stable/ +# Create certificates +certbot certonly --dns-ovh --dns-ovh-credentials ~/.secrets/certbot/ovh.ini -d bookshelf.aldon.fr +``` +## TODO +Change `front/src/config.js` : Variabilize `ROOT_FQDN` \ No newline at end of file diff --git a/front/src/components/PaginationFooter.vue b/front/src/components/PaginationFooter.vue index baa612a..cce87b0 100644 --- a/front/src/components/PaginationFooter.vue +++ b/front/src/components/PaginationFooter.vue @@ -4,18 +4,18 @@ diff --git a/front/src/components/SearchHeader.vue b/front/src/components/SearchHeader.vue index 4267b85..03cd753 100644 --- a/front/src/components/SearchHeader.vue +++ b/front/src/components/SearchHeader.vue @@ -5,6 +5,7 @@