How sathwikhbhat/journal-app works
Project type and purpose
• This is a backend‐only, RESTful journaling service built with Spring Boot (Java) and MongoDB.
• It exposes secure CRUD endpoints for journal entries and user management, performs custom sentiment analysis, and sends weekly email summaries via SMTP.
File structure
• Top‐level: pom.xml, Maven wrapper files, README.
• src/main/java/com/sathwikhbhat/journalapp:
• config/ → SpringSecurity, Swagger, global exception handler
• controller/ → PublicController (signup/login), UserController, JournalEntryController, AdminController
• filter/ → JwtFilter (validates incoming tokens)
• service/ → business logic: UserService, JournalEntryService, EmailService, UserDetailsServiceImpl
• repository/ → MongoDB access: JournalEntryRepository, UserRepository (+ custom impl)
• entity/ → domain objects: User, JournalEntry
• enums/utility/ → Sentiment enum, JwtUtil
• scheduler/ → scheduled weekly email trigger (UserScheduler)
• src/main/resources: application.yml (MongoDB URI, mail creds), logback.xml
• src/test: JUnit/Mockito tests
README
• Confirms the architecture, tech stack (Java, Spring Boot, MongoDB, JWT, Gmail SMTP).