A powerful, lightning-fast code search engine built for developers who need to quickly find and navigate through their codebase. Built with React, Node.js, Express, and MongoDB, optimized for performance and ease of use.
- Frontend (Netlify): https://code-search.netlify.app/
- Backend (Render): https://code-search-engine-ojxt.onrender.com/
- β‘ Lightning Fast Search β Search through your entire codebase with instant results using advanced indexing algorithms.
- π Multi-Language Support β Supports C++, JavaScript, Python, HTML, and more.
- π― Precise Results β Get exact matches with highlighted keywords and context-aware snippets.
- π Search History β Keep track of your previous searches with detailed result history and timestamps.
- β‘ Real-time Indexing β Automatically indexes uploaded code for faster and more accurate search.
- π Secure & Private β Your code remains stored locally on the backend.
Frontend
- React + Vite
- Tailwind CSS
- React Router
Backend
- Node.js & Express
- Multer (for file uploads)
- MongoDB (for storage & metadata)
Deployment
- Frontend β Netlify
- Backend β Render
Code-Search-Engine/
βββ backend/ # Express backend APIs
β βββ server.js # Entry point
β
βββ frontend/ # React + Vite frontend
β βββ src/ # Components, pages, utils
β βββ public/ # Static assets
β
βββ codebase/ # Uploaded code files (server-side storage)
βββ README.md
βββ package.json
git clone https://github.com/your-username/Code-Search-Engine.git
cd Code-Search-Enginecd backend
npm installCreate a .env file in /backend:
PORT=5000
MONGODB_URI=mongodb://localhost:27017/codesearchengine
JWT_SECRET=your-secret-key
NODE_ENV=developmentRun backend:
npm startcd frontend
npm install
npm run devFor production build:
npm run buildPOST /api/uploadβ Upload code filesGET /search?q=keywordβ Search keyword across codebaseGET /api/codebaseβ Get all uploaded filesDELETE /api/delete/:filenameβ Delete a fileDELETE /api/codebaseβ Clear entire codebaseGET /api/healthβ Health check
- Frontend: Deployed on Netlify (set
base directory = frontend,build command = npm run build,publish directory = frontend/dist). - Backend: Deployed on Render (set
root directory = backend,build command = npm install,start command = node server.js).
- User authentication & per-user storage
- Cloud storage integration (AWS S3 / GCP)
- Advanced filters (by file type, repo, etc.)
- UI enhancements