Update makefile and user model, add Telegram integration

This commit is contained in:
Ehco1996
2024-03-01 22:33:30 +08:00
parent 690d2e6ba2
commit 194ff1ac57
6 changed files with 204 additions and 164 deletions

View File

@@ -1,7 +1,7 @@
FRONTEND_DIR = ./web
BACKEND_DIR = .
.PHONY: all start-frontend start-backend
.PHONY: all build-frontend start-backend
all: start-frontend start-backend
@@ -9,12 +9,6 @@ build-frontend:
@echo "Building frontend..."
@cd $(FRONTEND_DIR) && npm install && DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build npm run build
# 启动前端开发服务器
start-frontend:
@echo "Starting frontend dev server..."
@cd $(FRONTEND_DIR) && npm start &
# 启动后端开发服务器
start-backend:
@echo "Starting backend dev server..."
@cd $(BACKEND_DIR) && go run main.go &