This project is a high-performance auto-complete search service using a C++ Trie for search algorithms, integrated with a Node.js backend and a React.js frontend. The backend handles Trie-based searches, and the frontend provides the user interface for interacting with the search service.
Ensure you have the following installed:
- Node.js (v14 or higher)
- npm (comes with Node.js)
- g++ or clang++ (to compile the C++ addon)
- CMake (to build the C++ Trie Node addon)
-
Navigate to the backend folder:
cd Backend
-
Build Node Addon
npx node-gyp clean
npx node-gyp configure
npx node-gyp build
This will compile the C++ Trie and generate the required Node.js addon.
npm install
Use nodemon to start the backend server:
nodemon index.js
cd ../Frontend
Install the required dependencies for the React frontend:
npm install
Start the React development server:
npm start