├── .env.example ├── .gitignore ├── jest.config.ts ├── package.json ├── src ├── api │ ├── controllers │ │ ├── ingredient │ │ │ ├── index.ts │ │ │ └── mapper.ts │ │ └── recipes │ │ │ ├── index.ts │ │ │ └── mapper.ts │ ├── dto │ │ ├── ingredient.dto.ts │ │ └── recipe.dto.ts │ ├── interfaces │ │ ├── index.ts │ │ ├── ingredient.interface.ts │ │ ├── recipe.interface.ts │ │ ├── review.interface.ts │ │ └── tag.inferace.ts │ └── routes │ │ ├── categories.ts │ │ ├── index.ts │ │ ├── ingredients.ts │ │ ├── recipes.ts │ │ └── reviews.ts ├── db │ ├── config.ts │ ├── dal │ │ ├── ingredient.ts │ │ ├── recipe.ts │ │ ├── review.ts │ │ ├── tag.ts │ │ └── types.ts │ ├── init.ts │ ├── models │ │ ├── Ingredient.ts │ │ ├── Recipe.ts │ │ ├── RecipeIngredient.ts │ │ ├── RecipeTag.ts │ │ ├── Review.ts │ │ ├── Tag.ts │ │ └── index.ts │ └── services │ │ ├── IngredientService.ts │ │ ├── RecipeService.ts │ │ ├── ReviewService.ts │ │ └── TagService.ts ├── index.ts └── lib │ ├── check-cache.ts │ └── local-cache.ts ├── tests ├── bootstrap.ts ├── helpers.ts ├── integration │ ├── dal │ │ └── ingredient.test.ts │ └── routes │ │ └── recipe.test.ts └── unit │ └── services │ └── review.test.ts ├── tsconfig.json ├── tslint.json └── yarn.lock /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .env 2 | dist 3 | node_modules 4 | coverage -------------------------------------------------------------------------------- /jest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/jest.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/package.json -------------------------------------------------------------------------------- /src/api/controllers/ingredient/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/api/controllers/ingredient/index.ts -------------------------------------------------------------------------------- /src/api/controllers/ingredient/mapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/api/controllers/ingredient/mapper.ts -------------------------------------------------------------------------------- /src/api/controllers/recipes/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/api/controllers/recipes/index.ts -------------------------------------------------------------------------------- /src/api/controllers/recipes/mapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/api/controllers/recipes/mapper.ts -------------------------------------------------------------------------------- /src/api/dto/ingredient.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/api/dto/ingredient.dto.ts -------------------------------------------------------------------------------- /src/api/dto/recipe.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/api/dto/recipe.dto.ts -------------------------------------------------------------------------------- /src/api/interfaces/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/api/interfaces/index.ts -------------------------------------------------------------------------------- /src/api/interfaces/ingredient.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/api/interfaces/ingredient.interface.ts -------------------------------------------------------------------------------- /src/api/interfaces/recipe.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/api/interfaces/recipe.interface.ts -------------------------------------------------------------------------------- /src/api/interfaces/review.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/api/interfaces/review.interface.ts -------------------------------------------------------------------------------- /src/api/interfaces/tag.inferace.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/api/interfaces/tag.inferace.ts -------------------------------------------------------------------------------- /src/api/routes/categories.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/api/routes/categories.ts -------------------------------------------------------------------------------- /src/api/routes/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/api/routes/index.ts -------------------------------------------------------------------------------- /src/api/routes/ingredients.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/api/routes/ingredients.ts -------------------------------------------------------------------------------- /src/api/routes/recipes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/api/routes/recipes.ts -------------------------------------------------------------------------------- /src/api/routes/reviews.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/api/routes/reviews.ts -------------------------------------------------------------------------------- /src/db/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/db/config.ts -------------------------------------------------------------------------------- /src/db/dal/ingredient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/db/dal/ingredient.ts -------------------------------------------------------------------------------- /src/db/dal/recipe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/db/dal/recipe.ts -------------------------------------------------------------------------------- /src/db/dal/review.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/db/dal/review.ts -------------------------------------------------------------------------------- /src/db/dal/tag.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/db/dal/tag.ts -------------------------------------------------------------------------------- /src/db/dal/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/db/dal/types.ts -------------------------------------------------------------------------------- /src/db/init.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/db/init.ts -------------------------------------------------------------------------------- /src/db/models/Ingredient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/db/models/Ingredient.ts -------------------------------------------------------------------------------- /src/db/models/Recipe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/db/models/Recipe.ts -------------------------------------------------------------------------------- /src/db/models/RecipeIngredient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/db/models/RecipeIngredient.ts -------------------------------------------------------------------------------- /src/db/models/RecipeTag.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/db/models/RecipeTag.ts -------------------------------------------------------------------------------- /src/db/models/Review.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/db/models/Review.ts -------------------------------------------------------------------------------- /src/db/models/Tag.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/db/models/Tag.ts -------------------------------------------------------------------------------- /src/db/models/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/db/models/index.ts -------------------------------------------------------------------------------- /src/db/services/IngredientService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/db/services/IngredientService.ts -------------------------------------------------------------------------------- /src/db/services/RecipeService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/db/services/RecipeService.ts -------------------------------------------------------------------------------- /src/db/services/ReviewService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/db/services/ReviewService.ts -------------------------------------------------------------------------------- /src/db/services/TagService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/db/services/TagService.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/lib/check-cache.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/lib/check-cache.ts -------------------------------------------------------------------------------- /src/lib/local-cache.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/src/lib/local-cache.ts -------------------------------------------------------------------------------- /tests/bootstrap.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/tests/bootstrap.ts -------------------------------------------------------------------------------- /tests/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/tests/helpers.ts -------------------------------------------------------------------------------- /tests/integration/dal/ingredient.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/tests/integration/dal/ingredient.test.ts -------------------------------------------------------------------------------- /tests/integration/routes/recipe.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/tests/integration/routes/recipe.test.ts -------------------------------------------------------------------------------- /tests/unit/services/review.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/tests/unit/services/review.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/tslint.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ibywaks/cookbook/HEAD/yarn.lock --------------------------------------------------------------------------------