How think-grow-studio/one-question-api-server works
One-Question is a Spring Boot API for a daily-question service. The main user workflow authenticates a member, serves a personal daily question, records an answer, and supports history and answer publication; separate public-question and reminder flows complement it. AI analysis requests snapshot selected answers and are published asynchronously through a shared background-job scheduler to SQS. The README documents these flows and integrations; some subsystem internals were not sampled, so links for those are based on the README rather than inspected implementation.
Main entry points: api REST APIs · analysisreport Analysis reports · backgroundjob Background publishing · auth Authentication
Components 18
Identity and Members
- Authentication
src/main/java/site/one_question/api/auth - Member profiles
src/main/java/site/one_question/api/member
Question Experiences
- Personal questions
src/main/java/site/one_question/api/question - Personal answers
src/main/java/site/one_question/api/question/domain/DailyQuestionAnswer.java
Community and Reports
- Public questions
src/main/java/site/one_question/api/publicquestion - Answer feed
src/main/java/site/one_question/api/answerpost - Analysis reports
src/main/java/site/one_question/api/analysisreport
Jobs and Notifications
- Background publishing
src/main/java/site/one_question/api/backgroundjob - Job scheduler
src/main/java/site/one_question/api/backgroundjob/infrastructure/BackgroundJobPublishScheduler.java - Question reminders
src/main/java/site/one_question/api/notification
Web and Operations
- REST APIs
src/main/java/site/one_question/api - Admin console
src/main/java/site/one_question/web/admin
Other components
- Mobile client
- Oracle database
- AWS SQS
- Firebase FCM
- OAuth providers
- Analysis worker
Connections 18
- Mobile client → REST APIs: calls
README.md - REST APIs → Authentication: authenticates
README.md - REST APIs → Member profiles: manages profiles
README.md - Authentication → OAuth providers: verifies identity
README.md - REST APIs → Personal questions: serves questions
README.md - Personal questions → Personal answers: records answers
README.md - REST APIs → Public questions: serves public Q&A
README.md - REST APIs → Answer feed: publishes answers
README.md - REST APIs → Analysis reports: requests analysis
README.md - Analysis reports → Personal answers: snapshots sources
README.md - Analysis reports → Background publishing: creates job
README.md - Job scheduler → Background publishing: claims jobs
README.md - Background publishing → AWS SQS: publishes messages
README.md - Analysis worker → AWS SQS: receives messages
README.md - REST APIs → Question reminders: sets reminders
README.md - Question reminders → Firebase FCM: sends notifications
README.md - REST APIs → Oracle database: persists domain data
README.md - Admin console → Oracle database: reads and manages
README.md