Skip to content

Carol-88/MarineConservation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project is a Spring Boot application for marine conservation management that integrates a MySQL database and organizes conservation events, projects, species, and habitats.

Project Overview

Marine Conservation is a web-based system designed to manage data on conservation events, projects, marine species, and natural habitats. The application helps organizations and researchers track initiatives and environmental information efficiently.1234567

Features

  • Spring Boot backend for rapid development and reliable architecture.5
  • MySQL database integration, supporting automatic creation if the database does not exist.6
  • JPA/Hibernate for ORM and schema generation.6
  • Management of marine species, habitats, conservation projects, and events with extensible domain models.2341
  • Swagger Link: http://localhost:8080/swagger-ui/

Getting Started

Prerequisites

  • Java 17 or newer.
  • MySQL Server running locally on your port.
  • Maven (wrapper scripts provided: mvnw for Unix, mvnw.cmd for Windows).89

Database Setup

Update your MySQL server with the following credentials or change them in src/main/resources/application.properties:

spring.datasource.url=jdbc:mysql://localhost:yourPORT/marine-conservation?createDatabaseIfNotExist=true 
spring.datasource.username=yourDBuser
spring.datasource.password=yourDBpass
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.show-sql=true

Building and Running

Use the Maven wrapper to build and start the application:

On Unix/Linux/macOS:

./mvnw spring-boot:run

On Windows:

mvnw.cmd spring-boot:run

Running Tests

Compile and execute unit tests using:

./mvnw test

Project Structure

├───src
│   ├───main
│   │   ├───java
│   │   │   └───marine
│   │   │       └───conservation
│   │   │           ├───controller
│   │   │           ├───dto
│   │   │           │   ├───ConservationEvent
│   │   │           │   ├───conservationProject
│   │   │           │   ├───habitat
│   │   │           │   ├───marineSpecie
│   │   │           │   └───volunteer
│   │   │           │       └───auxiliary
│   │   │           ├───enums
│   │   │           ├───model
│   │   │           ├───repository
│   │   │           ├───service
│   │   │           │   ├───impl
│   │   │           │   └───interfaces
│   │   │           └───util
│   │   └───resources
│   └───test
│       └───java
│           └───marine
│               └───conservation
│                   ├───controller
│                   └───service
│                       └───impl


Configuration

  • Application Name: marineConservation6
  • Database: Configurable in application.properties; defaults to root user and ironhack password.6
  • JPA: Schema is generated on application start (create-drop), showing SQL queries for debugging.6

Project Presentation

Presentation

License

Licensed under the Apache License, Version 2.0.98


Footnotes

  1. ConservationEvent.java 2

  2. ConservationProject.java 2

  3. Habitat.java 2

  4. MarineSpecie.java 2

  5. ConservationApplication.java 2

  6. application.properties 2 3 4 5 6

  7. pom.xml

  8. mvnw 2

  9. mvnw.cmd 2

About

Trabajo en grupo para modulo Java sobre la conservación marina.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages