Skip to content

Commit 0718dd8

Browse files
committed
💄(makefile) add information messages during bootstrap
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.
1 parent 1cdb6b6 commit 0718dd8

File tree

1 file changed

+67
-3
lines changed

1 file changed

+67
-3
lines changed

Makefile

Lines changed: 67 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,77 @@ post-bootstrap: \
8989
mails-build
9090
.PHONY: post-bootstrap
9191

92-
93-
bootstrap: ## Prepare Docker developmentimages for the project
92+
pre-beautiful-bootstrap: ## Display a welcome message before bootstrap
93+
ifeq ($(OS),Windows_NT)
94+
@echo ""
95+
@echo "================================================================================"
96+
@echo ""
97+
@echo " Welcome to Docs - Collaborative Text Editing from La Suite!"
98+
@echo ""
99+
@echo " This will set up your development environment with:"
100+
@echo " - Docker containers for all services"
101+
@echo " - Database migrations and static files"
102+
@echo " - Frontend dependencies and build"
103+
@echo " - Environment configuration files"
104+
@echo ""
105+
@echo " Services will be available at:"
106+
@echo " - Frontend: http://localhost:3000"
107+
@echo " - API: http://localhost:8071"
108+
@echo " - Admin: http://localhost:8071/admin"
109+
@echo ""
110+
@echo "================================================================================"
111+
@echo ""
112+
@echo "Starting bootstrap process..."
113+
else
114+
@echo "$(BOLD)"
115+
@echo "╔══════════════════════════════════════════════════════════════════════════════╗"
116+
@echo "║ ║"
117+
@echo "║ 🚀 Welcome to Docs - Collaborative Text Editing from La Suite ! 🚀 ║"
118+
@echo "║ ║"
119+
@echo "║ This will set up your development environment with : ║"
120+
@echo "║ • Docker containers for all services ║"
121+
@echo "║ • Database migrations and static files ║"
122+
@echo "║ • Frontend dependencies and build ║"
123+
@echo "║ • Environment configuration files ║"
124+
@echo "║ ║"
125+
@echo "║ Services will be available at: ║"
126+
@echo "║ • Frontend: http://localhost:3000 ║"
127+
@echo "║ • API: http://localhost:8071 ║"
128+
@echo "║ • Admin: http://localhost:8071/admin ║"
129+
@echo "║ ║"
130+
@echo "╚══════════════════════════════════════════════════════════════════════════════╝"
131+
@echo "$(RESET)"
132+
@echo "$(GREEN)Starting bootstrap process...$(RESET)"
133+
endif
134+
@echo ""
135+
.PHONY: pre-beautiful-bootstrap
136+
137+
post-beautiful-bootstrap: ## Display a success message after bootstrap
138+
@echo ""
139+
ifeq ($(OS),Windows_NT)
140+
@echo "Bootstrap completed successfully!"
141+
@echo ""
142+
@echo "Next steps:"
143+
@echo " - Visit http://localhost:3000 to access the application"
144+
@echo " - Run 'make help' to see all available commands"
145+
else
146+
@echo "$(GREEN)🎉 Bootstrap completed successfully!$(RESET)"
147+
@echo ""
148+
@echo "$(BOLD)Next steps:$(RESET)"
149+
@echo " • Visit http://localhost:3000 to access the application"
150+
@echo " • Run 'make help' to see all available commands"
151+
endif
152+
@echo ""
153+
.PHONY: post-beautiful-bootstrap
154+
155+
bootstrap: ## Prepare the project for local development
94156
bootstrap: \
157+
pre-beautiful-bootstrap \
95158
pre-bootstrap \
96159
build \
97160
post-bootstrap \
98-
run
161+
run \
162+
post-beautiful-bootstrap
99163
.PHONY: bootstrap
100164

101165
bootstrap-e2e: ## Prepare Docker production images to be used for e2e tests

0 commit comments

Comments
 (0)