How ellinorelisabeth/dream works
Dreams is a React/TypeScript application for recording and managing dreams, backed by an ASP.NET Core REST API and SQLite. Users enter through the routed frontend; the frontend service communicates with the API, whose controller uses the EF Core context to read and persist thoughts. Search and delete are visible in sampled frontend code, while the README and API document add, update, and delete capabilities. Image upload is present as a separate capability, but its frontend service targets a different local port; its runtime connection to the backend is therefore uncertain.
Main entry points: AppRouting.tsx App routing · SearchThought.tsx Search controls · ThoughtController.cs Thought controller · Service.ts Thought service
Components 18
Dreams frontend
- App shell
FrontEnd/src/App.tsx - App routing
FrontEnd/src/routing/AppRouting.tsx - Home page
FrontEnd/src/pages/HomePage.tsx - Add page
FrontEnd/src/pages/AddThoughtPage.tsx - Search page
FrontEnd/src/pages/SearchPage.tsx - Search controls
FrontEnd/src/components/SearchThought.tsx - Thought state
FrontEnd/src/context/Context.tsx - Thought service
FrontEnd/src/services/Service.ts
Thought API
- Thought controller
BackEnd/Controllers/ThoughtController.cs - Thought model
BackEnd/Models/Thought.cs
Persistence
- EF context
BackEnd/Data/DreamDbContext.cs - SQLite store
BackEnd/appsettings.json
Image upload
- Image page
FrontEnd/src/pages/ImagePage.tsx - Image controls
FrontEnd/src/components/UploadImage.tsx - Image service
FrontEnd/src/services/UploadImageService.ts - Image controller
BackEnd/Controllers/UploadImageController.cs - Web image files
BackEnd/wwwroot/images
Other components
- User
Connections 17
- User → App shell: uses
- App shell → App routing: renders
- App routing → Home page: routes
- App routing → Add page: routes
- App routing → Search page: routes
- App routing → Image page: routes
- Search page → Search controls: renders
- Search controls → Thought service: searches via
- Search controls → Thought state: deletes via
- Thought state → Thought service: calls
- Thought service → Thought controller: HTTP requests
- Thought controller → EF context: queries and updates
- EF context → SQLite store: reads and writes
- Thought controller → Thought model: uses
- Image page → Image controls: renders
- Image controls → Image service: uploads via
- Image controller → Web image files: writes files