First, run the python backend.
cd llm_code_navigator/backend
python -m app.mainOpen http://localhost:9000 with your browser to see the result.
{"detail":"Not Found"}
To run the backend, use the following command:
cd llm_code_navigator/backend
python -m app.mainThe backend provides the following API endpoints:
GET /api/files_info: Retrieves information about the files.GET /api/file_content/{full_path}: Retrieves the content of a specific file.
The backend can be configured using environment variables. The following options are available:
PROJECT_NAME: The name of the project.BACKEND_DIR: The directory where the backend files are located.ALLOWED_ORIGINS: A list of allowed origins for CORS.LOG_LEVEL: The log level for the application.
To run the tests for the backend, use the following command:
cd llm_code_navigator/backend
python -m unittest discover -s backend/testsThe tests are located in the backend/tests directory and cover various aspects of the backend services.