Commit graph

5 commits

Author SHA1 Message Date
e8fd635ddb Add Businesses context with A-Frame architecture
Phase 1 - Database foundation:
- Categories, businesses, hours, photos migrations
- Ecto schemas with changesets and validations

Phase 2 - Business logic:
- Logic module with pure functions (Haversine distance, slug generation, etc.)
- Queries module for database operations with filtering
- Businesses context coordinating Logic and Queries layers
- 43 tests covering logic and queries

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-30 23:55:29 -05:00
9cbbb045b9 Add A-Frame architecture and Testing Without Mocks guidelines
Document James Shore's patterns for clean architecture:
- A-Frame: Logic and Infrastructure as independent peers
- Testing Without Mocks: state-based tests, Nullables, no mocking
- Testing approach by layer (Logic, Infrastructure, Application)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-30 22:51:32 -05:00
67657bf717 Add pre-commit hook for formatting and tests
- Add scripts/pre-commit hook that runs format check and tests
- Add mix hooks.install alias to install the hook
- Document git hooks in AGENTS.md
- Fix test database config to use local user

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-30 21:58:08 -05:00
1e61383eb6 Initialize Phoenix LiveView project
Set up localspot as a Phoenix 1.8 LiveView application with:
- Erlang/Elixir via asdf
- PostgreSQL database (local user config)
- Tailwind CSS v4 with daisyUI
- Updated AGENTS.md with project setup and guidelines

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-30 21:45:50 -05:00
c7bb56ad15 first commit 2025-11-30 21:10:16 -05:00