Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Yurben-bit/Sistema-de-Administraci-n-Escolar-Backend/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, ensure you have the following installed on your system:Java 8+
JDK 8 or higher required
Maven 3.x
For dependency management
MySQL 8.0+
Database server running
You’ll also need Git to clone the repository.
Quick Installation
Configure Database Connection
Update the
src/main/resources/application.properties file with your database credentials:Install Dependencies
Use Maven to download all required dependencies:
The Maven wrapper (
./mvnw) is included in the project and doesn’t require Maven to be installed globally.Verify Installation
Once the application is running, verify that everything is working correctly.Check Application Health
Test the application by making a request to the login endpoint:Since this is a development build without full authentication validation, the endpoint will generate a JWT token for any username provided.
Expected Response
You should receive a JWT token response:Understanding the Code
Now that you have the application running, let’s understand the key components:Main Application Class
The entry point of the application is defined inEdutecApplication.java:
src/main/java/com/tecmilenio/edutec/EdutecApplication.java
Authentication Controller
TheAuthController handles login requests at /auth/login:
src/main/java/com/tecmilenio/edutec/controller/AuthController.java
JWT Service
TheJwtService generates secure JWT tokens for authenticated users:
src/main/java/com/tecmilenio/edutec/security/JwtService.java
User Model
TheUser entity represents users in the database:
src/main/java/com/tecmilenio/edutec/model/User.java
Login Request DTO
TheLoginRequest DTO handles incoming login data:
src/main/java/com/tecmilenio/edutec/dto/LoginRequest.java
Development Workflow
Running in Development Mode
Spring Boot DevTools is included in the project, enabling automatic restart when code changes:Database Schema Management
The application uses JPA’sddl-auto=update setting, which automatically creates and updates database tables based on your entity classes.
For production deployments, consider using a migration tool like Flyway or Liquibase instead of automatic schema generation.
Common Issues
MySQL Connection Refused
MySQL Connection Refused
Ensure MySQL is running and accessible:Check that the port 3306 is not blocked by a firewall.
Port 8080 Already in Use
Port 8080 Already in Use
Change the server port in
application.properties:Maven Build Failures
Maven Build Failures
Clear the Maven cache and rebuild:
Next Steps
Now that you have EduTec Backend running locally, you can:- Explore the API Reference to learn about available endpoints
- Read about Authentication to understand the JWT implementation
- Check the Database Schema to see the data structure
- Review the Configuration Guide for production settings
Need Help?
If you encounter any issues, please open an issue on GitHub.