We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See #10
As a leader of trip, I want to make a meal plan To provide a balanced and tasty dishes
MealPlanningService.ts
GetMealPlan(arrive, leave, tourists, blacklist, whitelist):MealPlan
EatingTimes.Breakfast
EatingTimes.Lunch
EatingTimes.Dinner
MealPlan
Recipe->SuggestedFor
./tests/services/MealPlanningService.spec.ts
class MealPlan{ meals: Dictionary<Date, MealPlanItem>, created: DateTime; ingredientsBlacklist: String[], touristsCount: number, arriveDateTime: DateTime, leaveDateTime: DateTime }
class MealPlanItem { eatingTime: EatingTimes, dishes: Dictionary<DishType, SummarizedRecipe> }
class SummarizedRecipe { dishName: String, guide: String, //text how to cook the dish totalIngredients: Dictionary<Ingredient, number> // Ingredient->Qty * touristsCount }
TypeScript classes
Jest Testing: A Helpful, Introductory Tutorial
The text was updated successfully, but these errors were encountered:
Vlad2322324
No branches or pull requests
Meal planning algorithm for short trips
See #10
As a leader of trip, I want to make a meal plan
To provide a balanced and tasty dishes
Acceptance criteria
MealPlanningService.ts
should be created at `src/services/', it contains all business-logic for this featureGetMealPlan(arrive, leave, tourists, blacklist, whitelist):MealPlan
with arguments:EatingTimes.Breakfast
EatingTimes.Lunch
EatingTimes.Dinner
MealPlan
object (see tech details)MealPlan
by random function and following requirements:Recipe->SuggestedFor
property, to find which dish is most compatible with eating time./tests/services/MealPlanningService.spec.ts
Technical details
Data structures
Useful links
TypeScript classes
Jest Testing: A Helpful, Introductory Tutorial
The text was updated successfully, but these errors were encountered: