Skip to content

Commit 7758e64

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 4ab9edc commit 7758e64

File tree

1 file changed

+66
-2
lines changed

1 file changed

+66
-2
lines changed

Makefile

Lines changed: 66 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,77 @@ post-bootstrap: \
9393
mails-build
9494
.PHONY: post-bootstrap
9595

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

97-
bootstrap: ## Prepare Docker developmentimages for the project
159+
bootstrap: ## Prepare the project for local development
98160
bootstrap: \
161+
pre-beautiful-bootstrap \
99162
pre-bootstrap \
100163
build \
101164
post-bootstrap \
102-
run
165+
run \
166+
post-beautiful-bootstrap
103167
.PHONY: bootstrap
104168

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

0 commit comments

Comments
 (0)