A comprehensive Enterprise Resource Planning (ERP) system for educational institutions, built with Spring Boot and PostgreSQL.
- User Management: Role-based access control (Admin, Student, Faculty)
- Authentication: JWT-based secure authentication
- Dashboard: Role-specific dashboards with personalized content
- RESTful API: Complete REST API with Swagger documentation
- Database: PostgreSQL only (no H2 dependency)
- Responsive UI: Modern, mobile-friendly interface
- Backend: Spring Boot 3.2.0, Java 17
- Database: PostgreSQL
- Security: Spring Security with JWT
- Frontend: HTML5, CSS3, JavaScript
- Documentation: Swagger/OpenAPI 3
- Build Tool: Maven
- Java 17 or higher
- Maven 3.6+
- PostgreSQL database
-
Clone the repository:
git clone https://github.com/AnasInaam/collage-erp.git cd collage-erp -
Set environment variables:
set DATABASE_URL=jdbc:postgresql://localhost:5432/college_erp set DB_USERNAME=your_username set DB_PASSWORD=your_password
-
Run the application:
mvn spring-boot:run
-
Access the application:
- Main App: http://localhost:8080
- API Docs: http://localhost:8080/swagger-ui.html
- Health Check: http://localhost:8080/actuator/health
| Role | Password | |
|---|---|---|
| Admin | admin@college.edu | admin123 |
| Student | student@college.edu | student123 |
| Faculty | faculty@college.edu | faculty123 |
POST /api/auth/register- Register new userPOST /api/auth/login- User login
GET /api/dashboard/admin- Admin dashboardGET /api/dashboard/student- Student dashboardGET /api/dashboard/faculty- Faculty dashboard
src/main/java/com/example/collegeerp/
├── controller/ # REST Controllers
├── service/ # Business Logic
├── repository/ # Data Access Layer
├── model/ # Entity Classes
├── config/ # Configuration
└── security/ # Security Config
# Build project
mvn clean compile
# Run tests
mvn test
# Create JAR
mvn clean package
# Run with specific profile
mvn spring-boot:run -Dspring-boot.run.profiles=devMIT License - see LICENSE file for details.