901 B
901 B
Architecture
web (Next.js static export, nginx) -> api (Spring Boot, :8002/api-vocab) -> MySQL
API (api/)
controller -> service -> repository -> entity. Request and response records are in dto.
- Word: English word, Turkish translation, level, synonym, sentence, notes.
- Quiz: belongs to a user; has a level and a
quizType(TYPINGorMULTIPLE_CHOICE; empty meansTYPING). - QAPair: one question of a quiz.
choiceOptionsstores the 4 options of a multiple-choice question, one per line.
Hibernate (ddl-auto=update) adds new columns at startup.
Web (web/src/app/)
redux/: one slice per API area.quiz/useQuizQuestion.js: question flow (load, answer, hint, next) shared byquiz/question(typing) andquiz/multiple-choice.quiz/quizPath.js: selects the question page by quiz type.util/AppTable.js: shared table with search.