Giter Club home page Giter Club logo

auto-complete-search's Introduction

Auto-Complete Search Service

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.

Prerequisites

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)

1. Backend Setup

Step 1: Build the C++ Trie Node Addon

  1. Navigate to the backend folder:

    cd Backend
    
  2. 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.

Step 2: Install Node.js Dependencies

npm install

Step 3: Start the Backend Server

Use nodemon to start the backend server:

nodemon index.js

1. Frontend Setup

Step 1: Navigate to the Frontend Directory

cd ../Frontend

Step 2: Install Frontend Dependencies

Install the required dependencies for the React frontend:

npm install

Step 3: Start the Frontend Server

Start the React development server:

npm start

auto-complete-search's People

Contributors

arpit330 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.