Initial commit

This commit is contained in:
Logisim-Evolution
2025-06-07 11:10:44 +00:00
commit 9829dfc6b5
9 changed files with 175 additions and 0 deletions

38
Makefile Normal file
View File

@@ -0,0 +1,38 @@
CURRENT_DIR=$(shell basename $(PWD))
CURRENT_DIR_LC=$(shell echo $(CURRENT_DIR) | tr A-Z a-z)
DOCKER_CONTAINER_NAME=$(CURRENT_DIR_LC)-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
init_breeze:
$(DOCKER_CMD) composer require laravel/breeze --dev
$(DOCKER_CMD) php artisan breeze:install --dark blade