Skip to content

Commit d2550c4

Browse files
committed
fastapi boilerplate project setup
1 parent d92d4dd commit d2550c4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.DEFAULT_GOAL := help
2+
ROOT_DIR := ./
3+
4+
hello:
5+
@echo "Hello, World!"
6+
7+
help: ## Show this help
8+
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
9+
10+
clean: ## Clean up the project of unneeded files
11+
@echo "Cleaning up the project of unneeded files..."
12+
@rm -rf .tox .mypy_cache .ruff_cache *.egg-info dist .cache htmlcov coverage.xml .coverage
13+
@find . -name '*.pyc' -delete
14+
@find . -name 'db.sqlite3' -delete
15+
@find . -type d -name '__pycache__' -exec rm -r {} \+
16+
@echo "Clean up successfully completed."
17+
18+
run: ## Run the development server
19+
@uvicorn main:app --reload

0 commit comments

Comments
 (0)