Skip to content

jothilakshmij/partner-management-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Partner Management System

A full-stack web application for managing business partners with a modern React frontend and Node.js/Express backend.

🚀 Features

  • Dashboard Overview: Visual statistics and charts showing partner distribution
  • Partner Management: Complete CRUD operations for partner data
  • Responsive Design: Modern, mobile-friendly interface
  • Data Visualization: Interactive pie charts and bar charts using Recharts
  • Real-time Updates: Live data updates across the application
  • Form Validation: Client and server-side validation
  • Error Handling: Comprehensive error handling and user feedback

🛠️ Tech Stack

Backend

  • Node.js - JavaScript runtime
  • Express.js - Web framework
  • MongoDB - NoSQL database
  • Mongoose - MongoDB object modeling
  • CORS- Cross-origin resource sharing
  • dotenv - Environment variable management

Frontend

  • React 18 - JavaScript library for building user interfaces
  • React Router - Client-side routing
  • Axios - HTTP client for API requests
  • Recharts - Composable charting library
  • CSS3 - Styling and responsive design

🚀 Getting Started

Prerequisites

  • Node.js (v14 or higher)
  • MongoDB (v4.4 or higher)
  • npm

Installation

1.Clone the repository

git clone <repository-url>
cd partner-management-system
  1. Install Backend Dependencies

    cd backend
    npm install
  2. Install Frontend Dependencies

    cd ../frontend
    npm install
  3. Set up Environment Variables

    Create a .env file in the backend directory:

    MONGODB_URI=mongodb://localhost:27017/partner-management
    PORT=5000
    NODE_ENV=development

Running the Application

Backend Server

  1. Start MongoDB

    # On Windows
    net start MongoDB
    
    # On macOS/Linux
    sudo systemctl start mongod
  2. Run the backend server

    cd backend
    npm start
    # or for development with auto-restart
    npm run dev

    The backend will be available at http://localhost:5000

Frontend Application

  1. Run the React development server

    cd frontend
    npm start

    The frontend will be available at http://localhost:3000

Dashboard

  • Statistics Cards**: Total, Active, Inactive partners count -CRUD: admin has crud oeration

Partner Management

  • Add Partner: Form to create new partners with validation
  • Edit Partner: Update existing partner information
  • Delete Partner: Remove partners with confirmation
  • Partner List: Table view with all partner details
  • Search & Filter: Easy partner lookup and management

User Experience -Responsive Design: Works on desktop, tablet, and mobile -Loading States: Visual feedback during data operations -Error Handling: User-friendly error messages -Success Notifications: Confirmation of successful operations

🔧 Development

Backend Development

cd backend
npm run dev  # Start with nodemon for auto-restart

Frontend Development

cd frontend
npm start    # Start React development server

Building for Production

# Build frontend
cd frontend
npm run build

# Start backend in production
cd backend
npm start

📸 Screenshots

Screenshots will be added to showcase the application interface sign up image

Dashboard View image

Partner List Screenshot of the partners table with all partner information image

Add/Edit Partner Form image

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

🐛 Troubleshooting

Common Issues

  1. MongoDB Connection Error 2.Port Already in Use
  2. CORS Issues
  3. Dependencies Issues

About

A full-stack web application for managing business partners with a modern React frontend and Node.js/Express backend.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors