From 7758e64f4072fee40e00053fc816aa0496e1ab88 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Mon, 4 Aug 2025 16:10:42 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84(makefile)=20add=20information=20me?= =?UTF-8?q?ssages=20during=20bootstrap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add nicely formatted messages to the Makefile to indicate the start and end of the bootstrap process. This will help users understand when the bootstrap process begins and ends, improving the overall user experience. --- Makefile | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 66 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 20ecdfae..376a7f65 100644 --- a/Makefile +++ b/Makefile @@ -93,13 +93,77 @@ post-bootstrap: \ mails-build .PHONY: post-bootstrap +pre-beautiful-bootstrap: ## Display a welcome message before bootstrap +ifeq ($(OS),Windows_NT) + @echo "" + @echo "================================================================================" + @echo "" + @echo " Welcome to Docs - Collaborative Text Editing from La Suite!" + @echo "" + @echo " This will set up your development environment with:" + @echo " - Docker containers for all services" + @echo " - Database migrations and static files" + @echo " - Frontend dependencies and build" + @echo " - Environment configuration files" + @echo "" + @echo " Services will be available at:" + @echo " - Frontend: http://localhost:3000" + @echo " - API: http://localhost:8071" + @echo " - Admin: http://localhost:8071/admin" + @echo "" + @echo "================================================================================" + @echo "" + @echo "Starting bootstrap process..." +else + @echo "$(BOLD)" + @echo "╔══════════════════════════════════════════════════════════════════════════════╗" + @echo "║ ║" + @echo "║ 🚀 Welcome to Docs - Collaborative Text Editing from La Suite ! 🚀 ║" + @echo "║ ║" + @echo "║ This will set up your development environment with : ║" + @echo "║ • Docker containers for all services ║" + @echo "║ • Database migrations and static files ║" + @echo "║ • Frontend dependencies and build ║" + @echo "║ • Environment configuration files ║" + @echo "║ ║" + @echo "║ Services will be available at: ║" + @echo "║ • Frontend: http://localhost:3000 ║" + @echo "║ • API: http://localhost:8071 ║" + @echo "║ • Admin: http://localhost:8071/admin ║" + @echo "║ ║" + @echo "╚══════════════════════════════════════════════════════════════════════════════╝" + @echo "$(RESET)" + @echo "$(GREEN)Starting bootstrap process...$(RESET)" +endif + @echo "" +.PHONY: pre-beautiful-bootstrap -bootstrap: ## Prepare Docker developmentimages for the project +post-beautiful-bootstrap: ## Display a success message after bootstrap + @echo "" +ifeq ($(OS),Windows_NT) + @echo "Bootstrap completed successfully!" + @echo "" + @echo "Next steps:" + @echo " - Visit http://localhost:3000 to access the application" + @echo " - Run 'make help' to see all available commands" +else + @echo "$(GREEN)🎉 Bootstrap completed successfully!$(RESET)" + @echo "" + @echo "$(BOLD)Next steps:$(RESET)" + @echo " • Visit http://localhost:3000 to access the application" + @echo " • Run 'make help' to see all available commands" +endif + @echo "" +.PHONY: post-beautiful-bootstrap + +bootstrap: ## Prepare the project for local development bootstrap: \ + pre-beautiful-bootstrap \ pre-bootstrap \ build \ post-bootstrap \ - run + run \ + post-beautiful-bootstrap .PHONY: bootstrap bootstrap-e2e: ## Prepare Docker production images to be used for e2e tests