Thank you for your interest in contributing to Vetlog! Your help is highly appreciated. This guide will walk you through the setup process, development workflows, and best practices for contributing to the project.
- Java 21+
- Docker
git clone https://github.com/josdem/vetlog-spring-boot.git
cd vetlog-spring-boot/docker
docker-compose up -d- App: http://localhost:8080
- Health Check: http://localhost:8080/actuator/health
- MySQL DB: localhost:3306
- Username:
vetlog_user - Password:
vetlog_password
- Username:
-
Start only MySQL in Docker:
cd docker docker-compose up -d mysql -
Update the following files:
-
src/main/resources/application.ymlspring: datasource: url: jdbc:mysql://localhost:3306/vetlog username: vetlog_user password: vetlog_password
-
build.gradle.ktsflyway { url = "jdbc:mysql://localhost:3306/vetlog" user = "vetlog_user" password = "vetlog_password" }
-
-
Run the application from your IDE.
- Get the repository
- If you are a new contributor: Fork the repository
- If you already have write access: Clone the repository
- Create a feature branch:
git checkout -b feature/<short-description>
- Make your changes
- Commit using clear messages (use Conventional Commits if
possible)
git commit -m "feat: add ability to update pet profile" - Push and submit a Pull Request (PR) against the
mainbranch - In your PR:
- Link any relevant issue (e.g.
Closes #652) - Provide a short summary of your changes
- Link any relevant issue (e.g.
To run tests locally:
-
Ensure MySQL is running (from Docker)
-
Run:
./gradlew testOr run specific tests:
./gradlew test --tests UserServiceTest
- Tests connect to:
localhost:3306 - JDK & Gradle must be installed locally
- Follow Java standard formatting
- Prefer meaningful names
- Use consistent indentation
If you use IntelliJ IDEA, use "Reformat Code" before committing.
If you face any issues:
- Check logs:
docker-compose logs - Make sure Docker is running
- Confirm DB container is healthy:
docker-compose ps - Reach out via GitHub Issues
Thank you for contributing to Vetlog!️