A modern lead management system built with Next.js, TypeScript, and MongoDB. This application allows you to efficiently manage leads with full CRUD operations, search functionality, and a responsive design.
Created by: Rupesh Bisen
- Lead Management: Create, read, update, and delete leads
- Search Functionality: Real-time search through leads by name
- Responsive Design: Mobile-first design with Tailwind CSS
- Form Validation: Client-side validation with Joi
- Toast Notifications: User-friendly notifications for all actions
- Loading States: Smooth loading indicators for better UX
- Modal Interface: Clean modal-based forms for lead operations
-
Clone the repository
git clone https://github.com/rupeshbisen/Next-Js-Lead-Curd-Application.git cd Next-Js-Lead-Curd-Application -
Install dependencies
npm install # or yarn install # or pnpm install
-
Environment Setup
cp .env.sample .env.local
Update the
.env.localfile with your MongoDB connection string and other required environment variables. -
Run the development server
npm run dev # or yarn dev # or pnpm dev # or bun dev
-
Open your browser Navigate to http://localhost:3000 to see the application.
src/
βββ app/
β βββ api/lead/ # API routes for lead operations
β βββ globals.css # Global styles
β βββ layout.tsx # Root layout component
β βββ page.tsx # Main page component
βββ components/
β βββ formElements/ # Reusable form components
β βββ loader/ # Loading components
βββ database/ # Database connection and configuration
βββ models/ # MongoDB/Mongoose models
βββ service/ # API service functions
βββ types/ # TypeScript type definitions
βββ utils/ # Utility functions and constants
npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpm run lint- Run ESLint
We welcome contributions to the Next.js Lead Application! Here's how you can help:
- Fork the repository on GitHub
- Clone your fork locally:
git clone https://github.com/rupeshbisen/Next-Js-Lead-Curd-Application.git
- Create a new branch for your feature:
git checkout -b feature/your-feature-name
- Code Style: Follow the existing code style and use ESLint
- TypeScript: Ensure all code is properly typed
- Testing: Add tests for new features (when applicable)
- Documentation: Update documentation for any new features
- Commit your changes with a clear message:
git commit -m "Add: new feature description" - Push to your fork:
git push origin feature/your-feature-name
- Create a Pull Request on GitHub with:
- Clear description of changes
- Screenshots (if UI changes)
- Testing instructions
- π Bug Fixes: Report and fix bugs
- β¨ New Features: Add new functionality
- π Documentation: Improve documentation
- π¨ UI/UX: Enhance user interface and experience
- β‘ Performance: Optimize application performance
- π§Ή Code Quality: Refactor and improve code quality
- Be respectful and inclusive
- Provide constructive feedback
- Help others learn and grow
- Follow the project's coding standards
GET /api/lead- Get all leadsPOST /api/lead- Create a new leadPUT /api/lead- Update an existing leadDELETE /api/lead- Delete a lead
- Advanced filtering options
- Export functionality
- Lead analytics dashboard
- Email integration
- Bulk operations
This project is private and proprietary.
- Next.js - The React framework for production
- Tailwind CSS - A utility-first CSS framework
- MongoDB - The database for modern applications
- Vercel - Platform for frontend frameworks and static sites
If you have any questions or need help, please:
- Check the existing issues on GitHub
- Create a new issue with detailed information
- Contact the development team
Rupesh Bisen
- GitHub: @rupeshbisen
- Project Repository: Next-Js-Lead-Curd-Application
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Give a βοΈ if this project helped you!
Made with β€οΈ by Rupesh Bisen