Files
project-search/readme.md
xiongxiao 1b131b3961 feat: initialize project structure with essential files and configurations
- Add .gitignore to exclude unnecessary files and directories
- Create .npmrc for npm authentication
- Add AGENTS.md for project documentation
- Initialize package.json with project metadata and dependencies
- Implement app.ts to set up the application and project manager
- Create file-search module for searching files in a directory
- Set up project manager and listener for managing project files
- Implement project search functionality with MeiliSearch integration
- Add routes for authentication and project management
- Create scheduler for task management
- Add tests for file searching and project management functionalities
2026-03-13 17:22:14 +08:00

10 lines
709 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 对文件项目快速搜索展示
## 介绍
比如文件夹 `/workspace/projects/project-search` 有很多文件监听修改后同步到meilisearh中。增删改查同步。
1. 获取文件夹下的.gitignore文件解析出需要忽略的文件列表。
2. 监听文件夹下的文件修改事件过滤掉需要忽略的文件将修改的文件同步到meilisearch中。
3. 需要提供一个scheduler任务调度同步到meilisearch的任务中如果存在同一个任务还没有被执行新的任务就不需要被添加到队列中。
4. 任务调度是一个队列任务列,先进先出,单线程执行。每次执行一个任务,执行完后再执行下一个任务。