mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
3.0 KiB
3.0 KiB
Contributing to Floci
Thank you for your interest in contributing! Floci is a community-driven project and all contributions are welcome.
Ways to Contribute
- Bug reports — open an issue with a minimal reproduction
- Feature requests — open an issue describing the AWS behavior you need
- Pull requests — bug fixes, new service implementations, or improvements
- Compatibility tests — add cases to
../floci-compatibility-tests
Getting Started
Prerequisites
- Java 25+
- Maven 3.9+
- Docker (for integration tests that spin up Lambda/RDS/ElastiCache)
Build & Run
git clone https://github.com/hectorvent/floci.git
cd floci
mvn quarkus:dev # hot reload on port 4566
Run Tests
mvn test # all tests
mvn test -Dtest=SsmIntegrationTest # single class
mvn test -Dtest=SsmIntegrationTest#putParameter # single method
Commit Message Format
This project uses Conventional Commits — semantic-release reads these to generate the changelog and version bumps automatically.
| Prefix | When to use | Version bump |
|---|---|---|
feat: |
New AWS API action or service | minor |
fix: |
Bug fix or AWS compatibility correction | patch |
perf: |
Performance improvement | patch |
docs: |
Documentation only | none |
chore: |
Build, CI, dependencies | none |
BREAKING CHANGE: |
Footer or ! suffix — incompatible change |
major |
Examples:
feat: add SQS SendMessageBatch action
fix: correct DynamoDB QueryFilter comparison operators
feat!: change default storage mode to persistent
Architecture
See CLAUDE.md for a detailed description of the three-layer architecture (Controller → Service → Storage), the AWS wire protocol mapping, and conventions for adding new services.
Adding a New AWS Service
- Create a package under
src/main/java/.../services/<service>/ - Add a Controller (follow the correct protocol — Query, JSON 1.1, REST JSON, or REST XML)
- Add a Service (
@ApplicationScoped) and model POJOs - Register in
ServiceRegistry - Add config entries in
EmulatorConfig.javaandapplication.yml - Add integration tests in
*IntegrationTest.java
Always implement the real AWS wire protocol — never invent custom endpoints. The AWS SDK must work against Floci without modification.
Pull Request Guidelines
- Keep PRs focused — one feature or fix per PR
- Add or update tests for any changed behavior
- Ensure
mvn testpasses before opening the PR - Reference any related issues in the PR description
Reporting Security Issues
Please do not open public issues for security vulnerabilities. Report them privately by emailing the maintainer or using GitHub private vulnerability reporting.