A full-stack search application built with Node.js, Express, MongoDB, and React. This project demonstrates basic search functionality using a non-optimized regex query, along with endpoints for editing and deleting items. The frontend provides an interface for real-time searching and displays results from the backend API.
- Search Functionality:
- Search for items using a regex-based query.
- Item Management:
- Edit: Update an existing item.
- Delete: Remove an item.
Install my-project with npm
git clone https://github.com/tharusha-dilhara/MERN-stack-performance-optimization-guide.git
cd MERN-stack-performance-optimization-guide
docker-compose up --build
GET /api/search?q=keyword
PUT /api/item/:id
Type | Description |
---|---|
string |
Required. Item's MongoDB ID |
object |
Required. Updated item data |
DELETE /api/item/:id
Type | Description |
---|---|
string |
Required. Item's MongoDB ID |