A modern fullstack application for searching questions, built with React and Node.js.
- Real-time question search functionality
- MongoDB integration for data persistence
- Responsive and modern UI
- Pagination support
- Sorting and filtering options
- Type-safe implementation with TypeScript
- Node.js (v16 or higher)
- MongoDB (v4.4 or higher)
- npm package manager
- Clone the repository
git clone https://github.com/vansh-codes/QuestSearch.git
cd quest-search
- Install dependencies for both frontend and backend
# Install frontend dependencies
cd client
npm install
# Install backend dependencies
cd ../server
npm install
- Configure environment variables
Frontend (client/.env
):
VITE_API_URL=http://localhost:3000
Backend (server/.env
):
MONGODB_URI=mongodb://localhost:27017/questsearch
PORT=3000
- Development:
http://localhost:5173
- Production:
https://questssearch.vercel.app
- express Server:
http://localhost:3000
- Production:
https://questsearchbackend.vercel.app/
npm run dev
: Start development servernpm run build
: Build for productionnpm run preview
: Serve production buildnpm run lint
: Run linternpm run format
: Format code using prettier
npm run dev
: Start development servernpm run build
: Build for production
The application includes built-in monitoring capabilities:
- Health check endpoint:
https://questsearchbackend.vercel.app/api/health
- React Query DevTools (development mode only)
Build and run client and server individually:
# Backend
cd server
npm run dev
open http://localhost:3000
# Frontend
cd client
npm run dev
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️