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
This commit is contained in:
19
test/remote.ts
Normal file
19
test/remote.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { app, manager } from '../src/index'
|
||||
import { RemoteApp } from '@kevisual/remote-app'
|
||||
|
||||
app.createRouteList()
|
||||
manager.init().then(() => {
|
||||
console.log('ProjectManager initialized successfully');
|
||||
}).catch((error) => {
|
||||
console.error('Failed to initialize ProjectManager:', error);
|
||||
});
|
||||
const remote = new RemoteApp({
|
||||
app,
|
||||
id: 'project-search',
|
||||
username: 'root'
|
||||
});
|
||||
const isConnect = await remote.isConnect();
|
||||
if (isConnect) {
|
||||
console.log('Remote app connected successfully', isConnect);
|
||||
remote.listenProxy();
|
||||
}
|
||||
Reference in New Issue
Block a user