a (unoriginal) social media backend made with spring
This repository has been archived on 2025年01月12日 . You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
- Java 100%
| gradle/wrapper | init commit [add basic spring-setup] | |
| http examples | change naming conventions & http files | |
| imgs | change naming conventions & http files | |
| src | cleanup | |
| .gitignore | add README.md | |
| build.gradle | use @NotNull instead of scuffed annotations | |
| gradlew | init commit [add basic spring-setup] | |
| gradlew.bat | init commit [add basic spring-setup] | |
| LICENSE | add license | |
| README.md | cleanup | |
| settings.gradle | change project-concept from bookshop to social media platform & update model accordingly | |
notify
a spring backend for a (unoriginal) social media platform, including
- messaging with reactions
- rooms
- room permissions
- public posts with comments
- friendships inspired by both Element and Instagram.
"cool" things
- bi-directional setters
- getters for not-modifiable-sets
- error-handling
- custom annotated UUID-entity & UUID-Repository
- custom annotated crud-repository & UUID-repository-tests
- (more tests than actual code)
- ...and probably more i forgot
entities
backend console
theres nothing interesting to see here...
end-to-end tests
user
room
note on the tests
the tests are mostly written by ChatGPT & very extensive
endpoints
I didn't implement all of the endpoints due to time restrictions (and because it was a school project)
endpoints:
-
/get_message -
/get_room_messageswith pagination -
/create_messagewith password-check (insecure), checks if user is room-member -
/delete_message -
/edit_message -
/get_roomonly first 100 messages -
/create_room -
/delete_room -
/get_user -
/create_user -
/delete_userwith password-check (insecure)