GithubHelp home page GithubHelp logo

Comments (21)

chauhannishith avatar chauhannishith commented on July 19, 2024

I am unable to understand what is happening in this. Can you explain me what you have done?

from recipe-search-api.

atherdon avatar atherdon commented on July 19, 2024

sure, no problem.
We should create a new API endpoint, that will return all data, that we need in our search form.
so, we'll create a new method at one of the models sample1, sample2, sample3 - sample3 is a crazy method, but i think it'll help you a bit in order to show how i manipulate the data

official docs here: https://loopback.io/doc/en/lb3/Remote-methods.html

from recipe-search-api.

chauhannishith avatar chauhannishith commented on July 19, 2024

I think I didn't explain this properly. I meant to say what is happening currently in this repo, there is no readme so i have no idea. I tried reading the code and scripts but couldnt understand.

Also why do we need to create fetch when we are having a package which omits our hassle of server calls?

from recipe-search-api.

atherdon avatar atherdon commented on July 19, 2024

@chauhannishith ohh, got it. I'll prepare an explanation and buzz you today or tomorrow

from recipe-search-api.

chauhannishith avatar chauhannishith commented on July 19, 2024

Can you tell me some basics so I can start understanding this till you tell me in detail

from recipe-search-api.

atherdon avatar atherdon commented on July 19, 2024

@chauhannishith i create a simple video for you, please take a look: https://vimeo.com/279601405

from recipe-search-api.

chauhannishith avatar chauhannishith commented on July 19, 2024

can you clear out the table data related to this repository? There are multiple entries for each field

from recipe-search-api.

chauhannishith avatar chauhannishith commented on July 19, 2024

Also now you have made separate files for different ingredients according to their departments i think i will have to make separate functions to combine them and return

or do you have any other plans for it?

from recipe-search-api.

chauhannishith avatar chauhannishith commented on July 19, 2024

npm 19-07-2018 10_35_33

I am trying to get data from package into the DB but i am getting this error. Do you know where this auto update is? Also i deleted the existing data because there were multiple entries for everything

Sorry there are weather issues so the connectivity is still limited

from recipe-search-api.

atherdon avatar atherdon commented on July 19, 2024

i get all your messages. just a bit busy. published 4 articles in 1 day :)
will reply soon, maybe when wake up, but 0 promises

from recipe-search-api.

chauhannishith avatar chauhannishith commented on July 19, 2024

I still haven't solved this. Can you tell me how you used to run the import file? The database comes as undefined in the import file no matter what i do, I tried keeping the logic in root.js but i am still unable to do this

from recipe-search-api.

atherdon avatar atherdon commented on July 19, 2024

from recipe-search-api.

atherdon avatar atherdon commented on July 19, 2024

@chauhannishith ok, i'm opened our server. will review it right now. more comments soon.
Btw, jjust to let you know - i've installed groceristar-fetch plugin. so we'll be able to make it work with you together too

from recipe-search-api.

atherdon avatar atherdon commented on July 19, 2024

Ok, so looks like our database is clean right now. I start to understand more about your questions

from recipe-search-api.

atherdon avatar atherdon commented on July 19, 2024

I started an import script and get an error. will find out and fix it.

Btw, i saw that you've asked a lot of questions - and i didn't answer them. Can you grab that questions into one comment, but put only questions that is still necessary, so i'll be able to anwer them

from recipe-search-api.

atherdon avatar atherdon commented on July 19, 2024

@chauhannishith it's not cool to say. but i think we should leave it as is.
i tried to debug it, but what i find - that server doesn't return a datasource. you can check my latest commits and see what i've done.
i'm a bit angry to loopback, because i think this issue related to their changes.
One month ago main server, related to groceristar project started to work strange. and i tried to fix it fast and then gave up and this issue forced me to start a process when we leave our old servers and just migrate to GraphQL approach. what do you think if i'll create a task for you, related to learning how GraphQL works and then we'll rebuild this server together?
I think issues from groceristar server and this server are linked, so maybe it's a good time to move to a new, more easier and clean way to do it.

from recipe-search-api.

atherdon avatar atherdon commented on July 19, 2024

tell me what do you think

from recipe-search-api.

atherdon avatar atherdon commented on July 19, 2024

Hold on. i think i find something

from recipe-search-api.

atherdon avatar atherdon commented on July 19, 2024

Nah, it not works... and as i opened main repository - a lot of other issues people posting too. so this is a dead end i assume

from recipe-search-api.

chauhannishith avatar chauhannishith commented on July 19, 2024

Hi @atherdon I think you haven't read my messages on slack. I won't be able to help you at least for some time right now in creating new stuff. But I think MLAB has a feature to export JSON files, you can search it and it might solve your issue for atleast some time right now.

i tried to debug it, but what i find - that server doesn't return a datasource.

i also encountered the same issue and tried to work around in root.js file but didn't work.

from recipe-search-api.

atherdon avatar atherdon commented on July 19, 2024

from recipe-search-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.