Files
neo-blog/Makefile
Snowykami 5fac42439a ️ feat: add post fetching by ID and improve blog home page
- Implemented `getPostById` API function to fetch a post by its ID.
- Refactored the main page to use a new `BlogHome` component for better organization.
- Added loading state and sorting functionality for posts on the blog home page.
- Integrated label fetching and display on the blog home page.
- Enhanced the blog card component with improved layout and statistics display.
- Updated the navbar to use dynamic configuration values.
- Added Docker support with a comprehensive build and push workflow.
- Created a custom hook `useStoredState` for managing local storage state.
- Added a new page for displaying individual posts with metadata generation.
- Removed unused components and files to streamline the codebase.
2025-07-25 03:58:53 +08:00

34 lines
730 B
Makefile

FRONTEND_IMAGE = snowykami/neo-blog-frontend:latest
BACKEND_IMAGE = snowykami/neo-blog-backend:latest
# 镜像名
FRONTEND_IMAGE = snowykami/neo-blog-frontend:latest
BACKEND_IMAGE = snowykami/neo-blog-backend:latest
# 构建前端镜像
.PHONY: build-frontend
build-frontend:
docker build -t $(FRONTEND_IMAGE) ./web
# 构建后端镜像
.PHONY: build-backend
build-backend:
docker build -t $(BACKEND_IMAGE) .
# 构建全部镜像
.PHONY: build
build: build-frontend build-backend
# 推送前端镜像
.PHONY: push-frontend
push-frontend:
docker push $(FRONTEND_IMAGE)
# 推送后端镜像
.PHONY: push-backend
push-backend:
docker push $(BACKEND_IMAGE)
# 推送全部镜像
.PHONY: push
push: push-frontend push-backend