README.md
chickenkyiv / recipe-search-api Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://loopback-recipe-search.herokuapp.com/explorer/#!/Recipe/Recipe_find
License: GNU Affero General Public License v3.0
Home Page: https://loopback-recipe-search.herokuapp.com/explorer/#!/Recipe/Recipe_find
License: GNU Affero General Public License v3.0
Have addon at Heroku: https://elements.heroku.com/addons/bonsai
For https://github.com/ChickenKyiv/recipe-search-react we have: https://github.com/appbaseio/reactivesearch
https://stackoverflow.com/questions/30228479/loopback-connector-for-elasticsearch
https://strongloop.com/strongblog/integrating-loopback-with-elasticsearch/
https://github.com/strongloop-community/loopback-connector-elastic-search
https://www.npmjs.com/package/loopback-connector-elastic-search
https://www.compose.com/articles/mongoosastic-the-power-of-mongodb-and-elasticsearch-together/
https://medium.com/@xoor/indexing-mongodb-with-elasticsearch-2c428b676343
So in order to get data about recipes, you can use swagger link: http://localhost:3000/explorer/#!/Recipe/Recipe_find
or
http://localhost:3000/api/recipe
it'll display a raw data about imported recipes.
This will give you a clear attributes list for particular recipe
http://localhost:3000/explorer/#!/Recipe/Recipe_prototype_get_attributesList
with id 5a8b57fc25b0113b4b961a0a
or
http://localhost:3000/api/recipe/5a8b57fc25b0113b4b961a0a/attributesList
id 5a8b57fc25b0113b4b961a0b
id 5a8b57fc25b0113b4b961a0c
Use this thing as visual for testing search functionality
#21 (comment)
Old information. Will update it later, maybe, this is why it here....
Recipe 1 & Recipe 4 has same attributes id=xxx
Recipe 1 & Recipe 2 has same attributes id=xxx
Recipe 2 & Recipe 3 has same attributes id=xxx
Recipe 3 & Recipe 4 has same attributes id=xxx
our working version is 001-import.js
but i also was worked at 005-emport.js - i unite small tables into attribute table, so i'll our api calls less crazy. But never have time to finish and test it.
Move files later to RAPI
**Date(related to weekly menus) **
First Header | Second Header | Status |
---|---|---|
Method | GET | |
Pathl | l | |
Pathl | l | |
Pathl | http://localhost:3000/api/ingredient?filter[where][name]=chicken&access_token=%token% | |
date:{ gt: Date.Now() - ONE_WEEK } | ||
https://loopback-recipe-search.herokuapp.com/api/ |
attributes :
course : An array of the cources associated with this recipe.
cuisine : An array of the cuisines associated with this recipe.
holiday : An array of the holidays associated with this recipe.
flavors : The flavor scores for this recipe.
salty : Saltiness on a range of 0 to 1.
sour : Sourness on a range of 0 to 1.
sweet : Sweetness on a range of 0 to 1.
bitter : Bitterness on a range of 0 to 1.
meaty : Savoryness on a range of 0 to 1.
piquant : Spiciness on a range of 0 to 1.
Based on Nick`s comment ChickenKyiv/recipe-search-react#35 (comment)
we need to have one API endpoint in order to populate our search fields
So in order to get data about recipes, you can use swagger link: http://localhost:3000/explorer/#!/Recipe/Recipe_find
or
http://localhost:3000/api/recipe
it'll display a raw data about imported recipes.
This will give you a clear attributes list for particular recipe
http://localhost:3000/explorer/#!/Recipe/Recipe_prototype_get_attributesList
with id 5a8b57fc25b0113b4b961a0a
or
http://localhost:3000/api/recipe/5a8b57fc25b0113b4b961a0a/attributesList
id 5a8b57fc25b0113b4b961a0b
id 5a8b57fc25b0113b4b961a0c
Use this thing as visual for testing search functionality
#21 (comment)
Old information. Will update it later, maybe, this is why it here....
Recipe 1 & Recipe 4 has same attributes id=xxx
Recipe 1 & Recipe 2 has same attributes id=xxx
Recipe 2 & Recipe 3 has same attributes id=xxx
Recipe 3 & Recipe 4 has same attributes id=xxx
#20
First Header | Second Header | Status |
---|---|---|
Method | GET | |
Pathl | l | |
Pathl | l | |
Pathl | http://localhost:3000/api/ingredient?filter[where][name]=chicken&access_token=%token% | |
https://loopback-recipe-search.herokuapp.com/api/recipe?filter[where][cook_time][lt]=5m |
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.