How eraycancoban/tubitak works
This repository is a Turkish diary and emotional-wellbeing web app. Users can register or sign in, write diary entries with optional camera-based emotion capture, receive chatbot replies, and review diary history; administrators have user and analysis views. The frontend routes these experiences to an Express API, which uses MySQL and calls local ML endpoints for diary analysis and forecasts. The README provides no capability details, so the product map is based on the source tree and excerpts. The Python service’s implementation and its connection to those endpoints were not shown; that relationship is left unverified.
Main entry points: App.tsx Route shell · index.js HTTP server · Chatbot.tsx Chat and camera · users.js User routes
Components 24
Web experience
- Route shell
tubitak-proje-frontend/src/App.tsx - Sign-in state
tubitak-proje-frontend/src/context/authContext.js - Diary entry
tubitak-proje-frontend/src/components/DiaryPage/DiaryPage.tsx - Chat and camera
tubitak-proje-frontend/src/pages/Chatbot.tsx - Diary history
tubitak-proje-frontend/src/pages/DiaryHistory.tsx - User profile
tubitak-proje-frontend/src/pages/UserInfo.tsx - Admin analysis
tubitak-proje-frontend/src/pages/AdminAnalysis.tsx - Public content
tubitak-proje-frontend/src/pages/Home.tsx - Blog content
tubitak-proje-frontend/src/data/blogs.ts
Application API
- Authentication routes
api/routes/auth.js - User routes
api/routes/users.js - Chat routes
api/routes/chat.js - RAG chat routes
api/routes/chatt.js - Auth operations
api/controllers/auth.js - Diary and user logic
api/controllers/user.js - Chat operations
api/controllers/chat.js - RAG chat operations
api/controllers/chatt.js - Model controller
api/controllers/model.js - HTTP server
api/index.js
Analysis services
- Python analysis service
api/mode.py
Persistence and identity
- MySQL diary
api/db.js
Other components
- Visitor
- Local ML endpoints
- Email service
Connections 30
- Visitor → Route shell: uses
tubitak-proje-frontend/src/App.tsx - Route shell → Sign-in state: reads session
tubitak-proje-frontend/src/App.tsx - Route shell → Diary entry: routes to
tubitak-proje-frontend/src/App.tsx - Route shell → Chat and camera: routes to
tubitak-proje-frontend/src/App.tsx - Route shell → Diary history: routes to
tubitak-proje-frontend/src/App.tsx - Route shell → User profile: routes to
tubitak-proje-frontend/src/App.tsx - Route shell → Admin analysis: routes to
tubitak-proje-frontend/src/App.tsx - Route shell → Public content: routes to
tubitak-proje-frontend/src/App.tsx - Public content → Blog content: renders content
tubitak-proje-frontend/src/pages/Home.tsx - Sign-in state → Authentication routes: posts login
tubitak-proje-frontend/src/context/authContext.js - Diary entry → User routes: saves entry
tubitak-proje-frontend/src/components/DiaryPage/DiaryPage.tsx - Diary entry → Local ML endpoints: sends images
tubitak-proje-frontend/src/components/DiaryPage/DiaryPage.tsx - Chat and camera → Chat routes: requests reply
tubitak-proje-frontend/src/pages/Chatbot.tsx - Chat and camera → User routes: fetches diary
tubitak-proje-frontend/src/pages/Chatbot.tsx - Chat and camera → Local ML endpoints: sends images
tubitak-proje-frontend/src/pages/Chatbot.tsx - HTTP server → Authentication routes: mounts routes
api/index.js - HTTP server → User routes: mounts routes
api/index.js - HTTP server → Chat routes: mounts routes
api/index.js - HTTP server → RAG chat routes: mounts routes
api/index.js - Authentication routes → Auth operations: dispatches to
api/routes/auth.js - User routes → Diary and user logic: dispatches to
api/routes/users.js - Chat routes → Chat operations: dispatches to
api/routes/chat.js - RAG chat routes → RAG chat operations: dispatches to
api/routes/chatt.js - Auth operations → MySQL diary: queries
api/controllers/auth.js - Auth operations → Email service: sends reset email
api/controllers/auth.js - Diary and user logic → MySQL diary: reads and writes
api/controllers/user.js - Diary and user logic → Local ML endpoints: requests analysis
api/controllers/user.js - Chat operations → MySQL diary: queries
api/controllers/chat.js - RAG chat operations → MySQL diary: queries
api/controllers/chatt.js - Python analysis service → Local ML endpoints