3

This is not a rant. Rather just a question or an ask for advice, as I have seen a lot of people talk about web development around here. I am planning to create a website for my search engine. I created a Rest API for my VPS so I can do http requests and retrieve some links for certain key words. But I need some good ideas to do this from a website. As I am not sure what would be the best way to do http requests. As far as I know it's possible with Js and PHP, but I am not sure what's better, more secure or convenient? So here I am to ask you guys, especially those who have experience with this, what I should consider to do.
Oh and please forgive me my limited knowledge about Js and PHP πŸ˜…πŸ˜Š

Comments
  • 2
    This sounds like a fun project,
    You’ll find that doing it in just JS would be quicker and probably easier if your not to familiar with js/php but if you don’t want to disclose the actual search engine endpoint to make the request against I would put the api calls into PHP and serve the response back through Ajax to the front end.

    Neither are a bad choice, just depends what you want / don’t want to do.
  • 1
    @C0D4
    Yea it definitely is! I have been playing around quite a bit with the search engine and Cassandra as a database. Cassandra is definitely incredible, I was really surprised, no wonder Netflix, Apple etc are using it πŸ˜‚
    But yea actually it's rather for playing around and for the matter of fact of having done something like that 😊

    But doing in the calls in PHP and showing them using AJAX sounds very nice to me πŸ€” As you mentioned it might be a bit less easier, but in my opinion that's worth for not disclosing the endpoint.
    Thank you very much! ☺️
  • 0
Add Comment