[{"title":"(82个子文件268KB)dailyfit-api:由Node.js和Express开发的API,可用于旨在简化饮食,计算一天中的总卡路里,蛋白质,碳水化合物和脂肪摄入量并维护该数据历史的应用程序。受MyFitnessPal等应用程序启发-源码","children":[{"title":"dailyfit-api-master","children":[{"title":".gitignore <span style='color:#111;'>116B</span>","children":null,"spread":false},{"title":".readme-images","children":[{"title":"logo.png <span style='color:#111;'>7.04KB</span>","children":null,"spread":false}],"spread":true},{"title":"package.json <span style='color:#111;'>1.34KB</span>","children":null,"spread":false},{"title":"src","children":[{"title":"dtos","children":[{"title":"ICreateUserDTO.ts <span style='color:#111;'>130B</span>","children":null,"spread":false}],"spread":true},{"title":"errors","children":[{"title":"AppError.ts <span style='color:#111;'>228B</span>","children":null,"spread":false}],"spread":true},{"title":"services","children":[{"title":"CreateMealService.ts <span style='color:#111;'>498B</span>","children":null,"spread":false},{"title":"AddFoodToMealService.ts <span style='color:#111;'>1.86KB</span>","children":null,"spread":false},{"title":"UpdateMealNameService.ts <span style='color:#111;'>864B</span>","children":null,"spread":false},{"title":"CreateUserService.ts <span style='color:#111;'>1.10KB</span>","children":null,"spread":false},{"title":"UpdateUserProfileService.ts <span style='color:#111;'>1.88KB</span>","children":null,"spread":false},{"title":"DeleteMealFoodService.ts <span style='color:#111;'>755B</span>","children":null,"spread":false},{"title":"AuthenticateService.ts <span style='color:#111;'>1.36KB</span>","children":null,"spread":false},{"title":"tests","children":[{"title":"DeleteUserService.spec.ts <span style='color:#111;'>2.13KB</span>","children":null,"spread":false},{"title":"DeleteMealFoodService.spec.ts <span style='color:#111;'>1.32KB</span>","children":null,"spread":false},{"title":"AuthenticateService.spec.ts <span style='color:#111;'>2.33KB</span>","children":null,"spread":false},{"title":"DeleteMealByIdService.spec.ts <span style='color:#111;'>2.29KB</span>","children":null,"spread":false},{"title":"UpdateMealFoodService.spec.ts <span style='color:#111;'>4.97KB</span>","children":null,"spread":false},{"title":"ListMealsByUserAndDate.spec.ts <span style='color:#111;'>2.64KB</span>","children":null,"spread":false},{"title":"AddFoodToMealService.spec.ts <span style='color:#111;'>2.24KB</span>","children":null,"spread":false},{"title":"CreateMealSerivce.spec.ts <span style='color:#111;'>757B</span>","children":null,"spread":false},{"title":"UpdateMealNameService.spec.ts <span style='color:#111;'>1.54KB</span>","children":null,"spread":false},{"title":"CreateUserService.spec.ts <span style='color:#111;'>1.43KB</span>","children":null,"spread":false},{"title":"ListFoodsByNameService.spec.ts <span style='color:#111;'>823B</span>","children":null,"spread":false},{"title":"UpdateUserProfile.spec.ts <span style='color:#111;'>4.23KB</span>","children":null,"spread":false}],"spread":false},{"title":"DeleteMealByIdService.ts <span style='color:#111;'>807B</span>","children":null,"spread":false},{"title":"DeleteUserService.ts <span style='color:#111;'>1.08KB</span>","children":null,"spread":false},{"title":"ListMealsByUserAndDate.ts <span style='color:#111;'>2.06KB</span>","children":null,"spread":false},{"title":"UpdateMealFoodService.ts <span style='color:#111;'>2.04KB</span>","children":null,"spread":false},{"title":"ListFoodsByNameService.ts <span style='color:#111;'>481B</span>","children":null,"spread":false}],"spread":false},{"title":"models","children":[{"title":"Food.ts <span style='color:#111;'>582B</span>","children":null,"spread":false},{"title":"MealFoods.ts <span style='color:#111;'>875B</span>","children":null,"spread":false},{"title":"User.ts <span style='color:#111;'>498B</span>","children":null,"spread":false},{"title":"Meal.ts <span style='color:#111;'>520B</span>","children":null,"spread":false}],"spread":true},{"title":"server.ts <span style='color:#111;'>658B</span>","children":null,"spread":false},{"title":"providers","children":[{"title":"BCryptHashProvider.ts <span style='color:#111;'>366B</span>","children":null,"spread":false},{"title":"base","children":[{"title":"IHashProvider.ts <span style='color:#111;'>149B</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"config","children":[{"title":"auth.ts <span style='color:#111;'>103B</span>","children":null,"spread":false}],"spread":true},{"title":"middlewares","children":[{"title":"authMiddleware.ts <span style='color:#111;'>805B</span>","children":null,"spread":false}],"spread":true},{"title":"database","children":[{"title":"repositories","children":[{"title":"fakes","children":[{"title":"FakeFoodsRepository.ts <span style='color:#111;'>1.77KB</span>","children":null,"spread":false},{"title":"FakeUsersRepository.ts <span style='color:#111;'>1.29KB</span>","children":null,"spread":false},{"title":"FakeMealsRepository.ts <span style='color:#111;'>1.44KB</span>","children":null,"spread":false},{"title":"FakeMealsFoodsRepository.ts <span style='color:#111;'>1.94KB</span>","children":null,"spread":false}],"spread":false},{"title":"MealFoodsRepository.ts <span style='color:#111;'>1.59KB</span>","children":null,"spread":false},{"title":"UsersRepository.ts <span style='color:#111;'>1.19KB</span>","children":null,"spread":false},{"title":"FoodsRepository.ts <span style='color:#111;'>804B</span>","children":null,"spread":false},{"title":"MealsRepository.ts <span style='color:#111;'>1.53KB</span>","children":null,"spread":false},{"title":"base","children":[{"title":"IMealsRepository.ts <span style='color:#111;'>606B</span>","children":null,"spread":false},{"title":"IUsersRepository.ts <span style='color:#111;'>401B</span>","children":null,"spread":false},{"title":"IFoodsRepository.ts <span style='color:#111;'>201B</span>","children":null,"spread":false},{"title":"IMealsFoodsRepository.ts <span style='color:#111;'>793B</span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"index.ts <span style='color:#111;'>67B</span>","children":null,"spread":false},{"title":"migrations","children":[{"title":"1612473695781-createMealsTable.ts <span style='color:#111;'>1.42KB</span>","children":null,"spread":false},{"title":"1612459396710-createFoodsTable.ts <span style='color:#111;'>1.76KB</span>","children":null,"spread":false},{"title":"1613950269058-addFoodNameColumnToMealFoods.ts <span style='color:#111;'>520B</span>","children":null,"spread":false},{"title":"1612458943511-installUuidExtension.ts <span style='color:#111;'>418B</span>","children":null,"spread":false},{"title":"1613946951432-changeDecimalToRealMealsFoodsTable.ts <span style='color:#111;'>908B</span>","children":null,"spread":false},{"title":"1613511661748-addNutritionalInfoToMealsFoods.ts <span style='color:#111;'>1.19KB</span>","children":null,"spread":false},{"title":"1612474889955-createMealsFoods.ts <span style='color:#111;'>1.86KB</span>","children":null,"spread":false},{"title":"1613946306288-changeDecimalToRealFoodsTable.ts <span style='color:#111;'>909B</span>","children":null,"spread":false},{"title":"1612473439575-createUsersTable.ts <span style='color:#111;'>1.33KB</span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"controllers","children":[{"title":"AuthController.ts <span style='color:#111;'>954B</span>","children":null,"spread":false},{"title":"MealFoodsController.ts <span style='color:#111;'>2.47KB</span>","children":null,"spread":false},{"title":"UsersController.ts <span style='color:#111;'>2.54KB</span>","children":null,"spread":false},{"title":"MealsController.ts <span style='color:#111;'>2.76KB</span>","children":null,"spread":false},{"title":"FoodsController.ts <span style='color:#111;'>684B</span>","children":null,"spread":false}],"spread":true},{"title":"routes","children":[{"title":"users.routes.ts <span style='color:#111;'>1.59KB</span>","children":null,"spread":false},{"title":"mealFoods.routes.ts <span style='color:#111;'>1.05KB</span>","children":null,"spread":false},{"title":"auth.routes.ts <span style='color:#111;'>411B</span>","children":null,"spread":false},{"title":"foods.routes.ts <span style='color:#111;'>492B</span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'>562B</span>","children":null,"spread":false},{"title":"meals.routes.ts <span style='color:#111;'>1.03KB</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"jest.config.ts <span style='color:#111;'>6.33KB</span>","children":null,"spread":false},{"title":"@types","children":[{"title":"express","children":[{"title":"index.d.ts <span style='color:#111;'>84B</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"yarn-error.log <span style='color:#111;'>272.20KB</span>","children":null,"spread":false},{"title":"assets","children":[{"title":"README.md <span style='color:#111;'>490B</span>","children":null,"spread":false},{"title":"foods.csv <span style='color:#111;'>30.30KB</span>","children":null,"spread":false}],"spread":true},{"title":"tsconfig.json <span style='color:#111;'>5.90KB</span>","children":null,"spread":false},{"title":".prettierrc.json <span style='color:#111;'>84B</span>","children":null,"spread":false},{"title":".prettierignore <span style='color:#111;'>47B</span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'>643B</span>","children":null,"spread":false},{"title":"babel.config.js <span style='color:#111;'>469B</span>","children":null,"spread":false},{"title":"yarn.lock <span style='color:#111;'>261.43KB</span>","children":null,"spread":false}],"spread":false}],"spread":true}]