🔧(frontend) add make commands for simplified frontend setup
Added intuitive make commands that help new developers quickly set up frontend dependencies and launch the entire stack. This streamlines onboarding by providing clear entry points for common development tasks without requiring deep knowledge of the project structure.
This commit is contained in:
committed by
aleb_the_flash
parent
a8e1bbe085
commit
332662d1e5
19
Makefile
19
Makefile
@@ -130,6 +130,25 @@ stop: ## stop the development server using Docker
|
||||
@$(COMPOSE) stop
|
||||
.PHONY: stop
|
||||
|
||||
# -- Front
|
||||
|
||||
frontend-development-install: ## install the frontend locally
|
||||
cd $(PATH_FRONT) && npm i
|
||||
.PHONY: frontend-development-install
|
||||
|
||||
frontend-lint: ## run the frontend linter
|
||||
cd $(PATH_FRONT) && npm run lint
|
||||
.PHONY: frontend-lint
|
||||
|
||||
frontend-format: ## run the frontend format
|
||||
cd $(PATH_FRONT) && npm run format
|
||||
.PHONY: frontend-format
|
||||
|
||||
run-frontend-development: ## run the frontend in development mode
|
||||
@$(COMPOSE) stop frontend
|
||||
cd $(PATH_FRONT) && npm run dev
|
||||
.PHONY: run-frontend-development
|
||||
|
||||
# -- Backend
|
||||
|
||||
demo: ## flush db then create a demo for load testing purpose
|
||||
|
||||
Reference in New Issue
Block a user