FeeDesk is a comprehensive enterprise resource planning system designed specifically for educational institutions to manage student payments, fees, and financial transactions efficiently. Built with a modern tech stack and featuring multi-tenant architecture, it enables multiple schools to operate independently within a single deployment.
- Multi-Tenant Architecture: Support multiple schools with complete data isolation
- M-PESA Integration: Seamless mobile money payments via Safaricom M-PESA
- Bank Integration: Automatic payment recording from bank statements (CSV/Excel)
- Real-time Updates: WebSocket-based live transaction notifications
- Student Management: Comprehensive student records and admission management
- Fee Management: Flexible fee structures with term-based billing
- Payment Tracking: Detailed transaction history and receipt generation
- User Roles: Role-based access control (Super Admin, School Admin, Bursar, Teacher)
- SMS Notifications: Automated SMS alerts for payments (via Africa's Talking)
- Bulk Operations: CSV import for students and bulk fee assignments
- Reporting: Financial reports, payment summaries, and analytics
- Security: JWT authentication, password hashing, and secure API endpoints
- Runtime: Node.js with Express.js
- Database: MongoDB with Mongoose ODM
- Authentication: JWT (JSON Web Tokens)
- Real-time: Socket.IO
- Security: Helmet, bcryptjs
- Payments: M-PESA API, Africa's Talking SMS API
- File Processing: Multer, CSV Parser
- Framework: React 19 with React Router v6
- Build Tool: Rolldown-powered Vite fork
- Styling: Tailwind CSS
- HTTP Client: Axios
- Real-time: Socket.IO Client
- Containerization: Docker & Docker Compose
- Process Management: PM2 (production)
- Logging: Morgan
- Environment: dotenv
Before you begin, ensure you have the following installed:
- Node.js: v16.x or higher
- MongoDB: v5.x or higher
- npm: v8.x or higher
- Docker (optional): For containerized deployment
- M-PESA Credentials: Safaricom Daraja API credentials (for payment integration)
- Africa's Talking Account: For SMS notifications (optional)
git clone https://github.com/isaac-ron/SchoolPayERP.git
cd SchoolPayERPcd backend
# Install dependencies
npm install
# Create environment file
cp .env.example .env
# Edit .env with your configuration
# - MongoDB connection string
# - JWT secret
# - M-PESA credentials
# - Africa's Talking API keys
nano .env
# Start the backend server
npm run devThe backend server will start on http://localhost:5000
cd frontend
# Install dependencies
npm install
# Create environment file
cp .env.example .env
# Edit .env with backend API URL
nano .env
# Start the development server
npm run devThe frontend application will start on http://localhost:5173
For a containerized deployment:
# Build and start all services
docker-compose up -d
# View logs
docker-compose logs -f
# Stop services
docker-compose downSee DOCKER_SETUP.md for detailed Docker configuration.
Create a .env file in the backend directory:
# Server Configuration
PORT=5000
NODE_ENV=development
# Database
MONGO_URI=mongodb://localhost:27017/schoolpay
# Authentication
JWT_SECRET=your_jwt_secret_key_here
# M-PESA Configuration
MPESA_CONSUMER_KEY=your_consumer_key
MPESA_CONSUMER_SECRET=your_consumer_secret
MPESA_PASSKEY=your_passkey
MPESA_SHORTCODE=your_paybill_number
MPESA_CALLBACK_URL=https://yourdomain.com/api/payments/mpesa/callback
# Africa's Talking (SMS)
AFRICASTALKING_API_KEY=your_africastalking_api_key
AFRICASTALKING_USERNAME=your_africastalking_username
AFRICASTALKING_SENDER_ID=SCHOOLPAYCreate a .env file in the frontend directory:
VITE_API_URL=http://localhost:5000/api
VITE_SOCKET_URL=http://localhost:5000Comprehensive documentation is available for various aspects of the system:
- Multi-Tenant Architecture: Detailed multi-tenant design and implementation
- Multi-Tenant Quick Reference: Quick guide for multi-tenant features
- M-PESA Integration: Complete M-PESA payment setup and integration
- Bank Integration: Bank statement processing and reconciliation
- Bank Integration Quick Start: Quick setup for bank integration
- API Testing Guide: API endpoints and testing procedures
- Docker Setup: Docker and container deployment guide
- Log in as Super Admin
- Navigate to Schools Management
- Click "Add New School"
- Fill in school details (name, code, paybill number)
- Set subscription plan and student limits
- Log in as School Admin or Bursar
- Go to Students section
- Add individual students or bulk import via CSV
Manual Entry:
- Navigate to Payments
- Select student and enter payment details
- Generate receipt
M-PESA Automatic:
- Students send payments to the school's M-PESA paybill
- System automatically records and matches to student accounts
- Real-time notifications sent
Bank Integration:
- Download bank statement (CSV/Excel)
- Upload via Bank Reconciliation tool
- System matches and records payments automatically
- Go to Reports section
- Select report type (collections, outstanding fees, etc.)
- Choose date range and filters
- Export as PDF or Excel
We welcome contributions to SchoolPayERP! To contribute:
- Fork the repository
- Create a 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
Please ensure your code follows the existing style and includes appropriate tests.
Testing infrastructure is planned for future releases. Current development focuses on:
# Backend linting
cd backend
npm run dev
# Frontend linting
cd frontend
npm run lintThis project is licensed under the MIT License - see the LICENSE file for details.
- Ron Isaac - Initial work - @isaac-ron
For support, please:
- Open an issue on GitHub
- Contact the project maintainer
- Safaricom for M-PESA Daraja API
- Africa's Talking for SMS API
- All contributors who have helped shape this project
This project is actively maintained and under continuous development. New features and improvements are regularly added based on user feedback and requirements.
Built with β€οΈ for educational institutions