2.0 KiB
2.0 KiB
Next Steps
Current Status
Typing and multiple-choice quizzes work in the API and the web app. Both were checked against vocabulary-test.
In Progress
Up Next (priority order)
- Build and run the Docker images (Docker was not available on the development machine)
- Back up the
vocabularydatabase before the first start of the new API: Hibernate addsquiz.quiz_typeandqapair.choice_options - Real authentication: hash passwords (BCrypt), issue JWT (the library is already in the pom) and protect the write endpoints. Today every request is allowed and the admin check is only in the browser
- Question count selection for a new quiz (an ALL quiz contains every word)
- Return quiz lists without
qaPair; the list page downloads every question of every quiz - Update dependencies:
npm auditreports vulnerabilities, including in Next.js 15.5.0;mysql-connector-javamoved tocom.mysql:mysql-connector-j
Recommendations
- Make quiz names unique per user instead of globally.
- Wrong options can be near-synonyms of the correct answer (for example azaltmak / eksiltmek). Use the synonym field to exclude them.
- Accept several Turkish translations for typing quizzes.
- Add a "repeat my wrong answers" quiz.
- Return 404 instead of 500 for unknown ids.
- antd 5 logs a React 19 warning; fix it with
@ant-design/v5-patch-for-react-19or antd 6. - Remove user data files from
api/src/main/resources; they are packaged into the jar.
Known Issues
application.propertiespoints tovocabulary-test. Docker uses the database in.env.
Notes for Next Session
- API tests without a database:
mvn test -Dtest='*ServiceTest'. The fullmvn testconnects to the configured database. - The
Initialize*test classes insert data into the configured database.InitializeWordsFromJsoncan be run again: it adds only missing words and does not update existing ones.InitializeUsersFromJsonstill needs an emptyapp_usertable.
poi-ooxmlinapi/pom.xmlis unused since the Excel import was removed.