Skip to content

j-fborges/java_fullstack_course_ebac

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot REST API Exercise

This is an Orphan Exercise branch from the Java Fullstack Course - EBAC, focused on Spring Boot fundamentals and REST API development.

🛠️ Technology Stack

  • Java Version: 17
  • Spring Boot: 3.5.10 (latest stable)
  • Build Tool: Maven
  • Database: PostgreSQL
  • Persistence: Spring Data JPA (Hibernate ORM)
  • Utilities: Project Lombok
  • Monitoring: Spring Boot Actuator
  • Development: Spring Boot DevTools

📦 Project Structure

SpringProject/
├── src/
│   ├── main/
│   │   ├── java/                    # Java source code
│   │   │   └── br/com/j_fborges/   # Base package
│   │   └── resources/               # Configuration files (application.properties, etc.)
│   └── test/
│       └── java/                    # Unit and integration tests
├── pom.xml                          # Maven configuration
├── mvnw / mvnw.cmd                  # Maven wrapper scripts (cross-platform)
├── .mvn/                            # Maven wrapper configuration
├── .gitignore                       # Git ignore rules
└── .gitattributes                   # Git attribute configuration

🚀 Quick Start

Prerequisites

  • Java 17 or higher
  • Maven 3.6+ (or use the included mvnw wrapper)
  • PostgreSQL database running

Setup Instructions

  1. Clone the branch:

    git clone https://github.com/j-fborges/java_fullstack_course_ebac.git
    cd java_fullstack_course_ebac
    git checkout java_springboot
  2. Configure database connection:

    • Edit src/main/resources/application.properties (or create it if it doesn't exist)
    • Add PostgreSQL configuration:
    spring.datasource.url=jdbc:postgresql://localhost:5432/your_database
    spring.datasource.username=your_username
    spring.datasource.password=your_password
    spring.jpa.hibernate.ddl-auto=update
    spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
  3. Build the project:

    ./mvnw clean install

    Or on Windows:

    mvnw.cmd clean install
  4. Run the application:

    ./mvnw spring-boot:run
  5. Access the application:

    • Application runs on: http://localhost:8080
    • Health check: http://localhost:8080/actuator/health
    • Metrics: http://localhost:8080/actuator/metrics

About

Repository with branches for each exercise delivery of the Java Fullstack course at EBAC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors