Skip to content

Feature/domain exception#1

Open
pascalkknde wants to merge 3 commits intotpximpact:mainfrom
pascalkknde:feature/domain-exception
Open

Feature/domain exception#1
pascalkknde wants to merge 3 commits intotpximpact:mainfrom
pascalkknde:feature/domain-exception

Conversation

@pascalkknde
Copy link

feat: define domain exception hierarchy

  • UrlShortenerExceptions: AliasNotFoundException, AliasAlreadyTakenException
  • InvalidUrlException, InvalidAliasException as static inner classes
  • Keeps service layer free of exception definitions

- Add documentation: Backend Architecture, Sequence diagram, Deployment diagram
- Add root .gitignore for Java, Node, Docker and IDE artifacts
- Scaffold Spring Boot 3.2 backend via Spring Initializr
- Verify empty app starts on port 8080
- ShortenedUrl entity with alias as natural PK, fullUrl, createdAt
- ShortenedUrlRepository extends JpaRepository<ShortenedUrl, String>
- application.yml: H2 file datasource default, Postgres via env vars
- Hibernate ddl-auto: update for schema bootstrapping
- UrlShortenerExceptions: AliasNotFoundException, AliasAlreadyTakenException
- InvalidUrlException, InvalidAliasException as static inner classes
- Keeps service layer free of exception definitions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant