Based on the customer location and taste profiles/preferences, returns a sorted list of restaurants on the basis of following factors:
- Restaurant proximity
- Current utilization rate
- Matching preferences
- Ratings.
└── 📁controllers
└── recommendation.controller.ts
└── 📁interfaces
└── customer.interface.ts
└── hub.interface.ts
|
|
└── utilizationData.interface.ts
└── 📁routers
└── recommendation.router.ts
└── 📁services
└── external.service.ts
└── 📁utils
└── recommenderUtil.ts
└── config.ts
└── index.ts
└── package.json
└── README.md
https://bento-recommender.onrender.com
- Clone the repository:
git clone https://github.com/omi5/recommendation-engine.git
- Install dependencies:
npm install
- Create a
.env
based on the given.env.example
- Start the development server:
npm run dev
- Make POST API Call:
localhost:5000/get-all-restaurants/get-all-restaurants
body:
{
"_id": "65cb1244bcf523adff87da56",
"currentLatLong": {
"longitude": -0.12715638773914495,
"latitude": 51.52503786295292
},
"customerPreference": {
"tastyTags": [
"Sour",
"Tangy"
],
"category": []
}
}