* Extended functionalities

* Added different UIs
This commit is contained in:
2026-06-24 21:43:40 +02:00
parent 282f4864c4
commit f15bb7a916
348 changed files with 59057 additions and 498 deletions

View File

@@ -106,8 +106,22 @@ compatible with hashes produced by ASP.NET Core Identity.
```bash
cd DailyMeals # repository root (where DailyMeals.sln lives)
./scripts/install-node.sh
```
**Angular frontend (recommended rewrite):**
```bash
cd meal-plan-frontend-angular
npm install
npm start # http://localhost:4200, proxies /api → localhost:5000
```
**Or React frontend:**
```bash
cd meal-plan-frontend
../scripts/npm install
../scripts/npm run dev # http://localhost:5173
```
4. In Rider, open the run configuration dropdown (top toolbar). You should see:
@@ -155,9 +169,13 @@ All `/api/recipes` endpoints require a valid `Authorization: Bearer <accessToken
| POST | `/api/auth/refresh` | Rotate refresh token → new token pair |
| POST | `/api/auth/logout` | Revoke a refresh token |
| GET | `/api/auth/me` | Current user info |
| GET | `/api/recipes` | List recipes — `?category=0..3` and `?search=` filters|
| GET | `/api/recipes` | List recipes — `?category=`, `?search=`, `?ingredient=` |
| GET | `/api/recipes/{id}` | Full recipe detail (ingredients + steps) |
| GET | `/api/recipes/categories` | Categories with active recipe counts |
| POST | `/api/recipes` | Create a recipe (ingredients + steps) |
| PUT | `/api/recipes/{id}` | Update a recipe |
| GET | `/api/recipes/import/template` | Download Excel import template (.xlsx) |
| POST | `/api/recipes/import/excel` | Import recipes from uploaded .xlsx file |
Meal categories: `0 = Breakfast`, `1 = SecondBreakfast`, `2 = Lunch`, `3 = Dinner`.
@@ -228,10 +246,19 @@ DailyMeals/
│ ├── Middleware/ ExceptionMiddleware
│ ├── Program.cs Composition root / pipeline
│ └── Dockerfile
├── meal-plan-frontend/ React + TypeScript SPA
├── meal-plan-frontend/ React + TypeScript SPA (original)
│ ├── src/ api, components, pages, hooks, store, types, utils
│ ├── nginx.conf TLS, gzip, security headers, /api proxy, SPA fallback
│ └── Dockerfile
├── meal-plan-frontend-angular/ Angular 19 SPA (rewrite of React frontend)
│ ├── src/app/ core, layout, features, shared
│ ├── public/i18n/ EN + PL translations
│ ├── nginx.conf
│ └── Dockerfile
├── meal-plan-frontend-mobile/ Expo (React Native) iOS + Android app
│ ├── app/ Expo Router screens
│ ├── src/ api, context, i18n, theme, components
│ └── README.md Run with `npm start` (see mobile README)
├── docker-compose.yml API + frontend (no database container)
└── .env.example
```