This application demonstrates the use of B+ tree indexing capabilities for efficient question-answer data retrieval.
- B+ tree indexed search for fast data retrieval
- Question-answer database with keyword support
- REST API for managing QnA entries
- CSV data import capability
- React frontend with search interface
To get the application up and running, follow these simple steps:
-
Navigate to the root directory of the project.
-
Execute the following command in your terminal:
docker-compose up --build
This command will build the necessary images and start two containers: one for the frontend and one for the backend.
- If the frontend shows “Backend Not Connected”, simply run the provided batch file:
This script will:
./run-backend.bat
Create a bridge container that resolves database connection conflicts between the backend and TiDB.
Establish a stable link so the Spring Boot backend can communicate properly with the database.
Ensure the frontend can connect to the backend without errors. Recommendation: Keep this extra container running in the background while developing. It’s outside your main docker-compose setup and can be stopped later if needed, but keeping it running during development ensures everything works smoothly..
Once the application is running, you can access it through your browser at the following addresses:
- Frontend: http://localhost:3000
- Backend: http://localhost:8081