6 Commits

Author SHA1 Message Date
Clément
4c26ad84e6 auth module (breeze) + styled components 2025-05-27 14:40:41 +02:00
d68256f03b breeze init script 2025-05-27 14:40:41 +02:00
Clément
8ca3d05486 added custom dockerfile for node 2025-05-27 14:40:41 +02:00
Clément
cd8f51526c comment form 2025-05-27 14:40:41 +02:00
66cc7dff0d errors handled in the correct log file 2025-05-27 14:40:41 +02:00
Clément
f4aa84a82d handled errors properly 2025-05-12 16:42:41 +02:00
7 changed files with 11 additions and 57 deletions

View File

@@ -1,32 +0,0 @@
DOCKER_CONTAINER_NAME=isi2-laravel-1
DOCKER_CMD=docker exec -it $(DOCKER_CONTAINER_NAME)
# Launch the container detached
all:
docker compose up -d
# Launch the container
run:
docker compose up
# Stop the container
stop:
docker compose down
# Stop the container and wipe the database
down:
docker compose down -v
# These tasks need the docker container to be running
exec_container:
$(DOCKER_CMD) bash
seed:
$(DOCKER_CMD) php artisan db:seed --class=$(CLASS)
migrate:
$(DOCKER_CMD) php artisan migrate

View File

@@ -17,6 +17,7 @@ services:
dockerfile: Laravel_Dockerfile
ports:
- "8080:8000"
- "8001:8001"
environment:
LARAVEL_DATABASE_USER: laravel_user
LARAVEL_DATABASE_PASSWORD: super_strong_password

View File

@@ -1,7 +0,0 @@
DB_CONNECTION=mariadb
DB_HOST=mariadb
DB_PORT=3306
DB_DATABASE=laravel_db
DB_USERNAME=laravel_user
DB_PASSWORD=super_strong_password
APP_KEY=""

View File

@@ -4,9 +4,4 @@ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | ba
RUN . ~/.nvm/nvm.sh && nvm install --lts
COPY init_laravel.sh /init/init_laravel.sh
COPY .env /init/.env
RUN chmod +x /init/init_laravel.sh
CMD bash /init/init_laravel.sh
RUN composer require laravel/breeze --dev

3
images/init_breeze.sh Normal file
View File

@@ -0,0 +1,3 @@
composer require laravel/breeze --dev
php artisan breeze:install blade
php artisan migrate

View File

@@ -1,12 +0,0 @@
#!/bin/sh
composer install
# Create .env if it does not exist
if ! [ -e ".env" ] ; then
cp /init/.env .
php artisan key:generate
fi
php artisan breeze:install blade
php artisan migrate --force
php artisan serve --host=0.0.0.0 --port=8000

6
package-lock.json generated Normal file
View File

@@ -0,0 +1,6 @@
{
"name": "isi2",
"lockfileVersion": 3,
"requires": true,
"packages": {}
}