Search is an important feature in most apps. Depending on the kind of application you're developing, you can get away with setting up a field for looking up simple keywords, or you may have to delve into a world of fuzzy algorithms and lookup tables. In this chapter, we'll create a real-time search app that mimics a web search engine. We'll work on quick searches that appear as you type, displaying the search results and providing the endless scrolling feature. We'll also create our own search API to handle our requests.
The application of these techniques are only limited by your imagination. On that note, let's get started.
These are the major topics that we'll cover in this chapter:
Creating your own search API
Connecting your API to MongoDB
Setting up API routing
Performing regex-based searches
Securing your API
Creating a ReactJS search app
Setting up react-router to handle non-hashed routes
Listening to event handlers
Creating a service layer
Connecting...