Thank you for your interest in contributing to this project! We welcome contributions from the community to help improve this open-source platform.
- Java 21 LTS (Eclipse Temurin recommended)
- Node.js 20+ and npm
- Docker & Docker Compose
- PostgreSQL 16 (or run via Docker)
- Redis 7 (or run via Docker)
The easiest way to spin up the local development environment is with Docker Compose:
# 1. Clone the repository
git clone https://github.com/mfarim/spring-elearning-react.git
cd spring-elearning-react
# 2. Start PostgreSQL, Redis, MinIO, Backend, and Frontend
docker compose up -d
# 3. Check health status
docker compose ps
curl http://localhost:8080/actuator/healthcd backend
# Ensure PostgreSQL and Redis are running
./mvnw clean spring-boot:runAPI documentation will be accessible at:
- Swagger UI: http://localhost:8080/swagger-ui.html
- Health Check: http://localhost:8080/actuator/health
cd frontend
npm install
npm run devFrontend will be accessible at http://localhost:3000.
To populate the database with realistic sample users, classrooms, subjects, learning materials, and CBT examinations:
# Connect to PostgreSQL container and load the seed script:
docker exec -i elearning-postgres psql -U postgres -d elearning < backend/src/main/resources/db/migration/seed_demo_data.sqlDefault credentials:
- Admin:
admin@elearning.com/password - Teacher:
teacher@elearning.com/password - Student:
student@elearning.com/password
Before opening a pull request, ensure that your code complies with the project's formatting and testing checks:
cd backend
./mvnw clean testcd frontend
npm run lint
npm run build- Fork the repository and create your branch from
main:git checkout -b feature/your-feature-name
- Commit your changes with clear, descriptive commit messages:
git commit -m "feat(auth): implement refresh token rotation" - Push to your fork:
git push origin feature/your-feature-name
- Open a Pull Request describing the problem, solution, and screenshots if UI changes are involved.
If you discover a potential security vulnerability, please report it privately to the maintainers rather than opening a public issue.