A comprehensive Java Spring Boot application for sharing academic materials, notes, and resources among students.
The application has been completely converted from Node.js to Java Spring Boot. All old files have been removed and the new application is ready to use.
- Java 17+
- Maven 3.6+
- PostgreSQL 12+
-
Navigate to the application directory:
cd note0-application
-
Set up the database:
# Create PostgreSQL database sudo -u postgres psql CREATE DATABASE notes_app; \q # Run the schema psql -U postgres -d notes_app -f database/schema.sql
-
Run the application:
./run.sh
-
Access the application:
- Web Interface: http://localhost:8080
- API Base: http://localhost:8080/api
note0/
├── note0-application/ # Main Java Spring Boot application
│ ├── src/main/java/com/note0/
│ │ ├── controller/ # REST & Web controllers
│ │ ├── dto/ # Data Transfer Objects
│ │ ├── entity/ # JPA entities
│ │ ├── repository/ # Data repositories
│ │ ├── security/ # Security configuration
│ │ ├── service/ # Business logic
│ │ └── Note0Application.java
│ ├── src/main/resources/
│ │ ├── templates/ # Thymeleaf templates
│ │ ├── application.yml # Configuration
│ │ └── data.sql # Sample data
│ ├── database/schema.sql # Database schema
│ ├── README.md # Detailed documentation
│ ├── DEPLOYMENT.md # Deployment guide
│ ├── test-api.http # API testing
│ └── run.sh # Startup script
├── CONVERSION_SUMMARY.md # Conversion details
├── report.md # Original analysis report
└── README.md # This file
- Admin Email: [email protected]
- Admin Password: admin123
- User Authentication: JWT-based authentication with role-based access control
- Material Upload: Upload and share academic materials with file validation
- Rating System: Rate materials and view community feedback
- Subject Organization: Organize materials by subjects and modules
- Modern UI: Responsive web interface built with Bootstrap and Thymeleaf
- Admin Panel: User management and material verification
- Backend: Spring Boot 3.2.0, Spring Security, Spring Data JPA
- Database: PostgreSQL
- Frontend: Thymeleaf, Bootstrap 5, JavaScript
- Authentication: JWT (JSON Web Tokens)
- Build Tool: Maven
- Application README - Detailed application documentation
- Deployment Guide - Production deployment instructions
- Conversion Summary - Details about the Node.js to Java conversion
- API Tests - API endpoint testing
This project was successfully converted from a Node.js application to Java Spring Boot. All original functionality has been preserved and enhanced:
- ✅ All API endpoints maintained
- ✅ Enhanced security with Spring Security
- ✅ Modern responsive UI
- ✅ Improved code organization and maintainability
- ✅ Production-ready configuration
- Follow the setup instructions above
- Access the web interface at http://localhost:8080
- Register a new account or use the admin credentials
- Start uploading and sharing materials!
For detailed information, see the Application README.