Algolia for node.js and Mongodb

I have a problem right now, Algolia really provides rich documentation regarding node.js, but my problem right now

1) how to import mongodb database to algolia server? it looks like they show how to use MySql database instead of Mongodb using node.js

2) I use ejs to render html, so do I need to request the search value using node.js or just allow it to be html clientide?

because with ejs i have to use

app.get("/testingSearch", function(req, res) {

  res.render('testing', { message: value});
})

app.post("/postSearch", function(req, res) {
  // some searching 
  var name = req.body.name;
  // algolia
});

Anyone who has experience with algolia + node.js + mongodb, please lend me your advice. thank you

+3
source share
1 answer

Mongodb

, Algolia MongoDB.

, , algolia .

Rendering

Algolia . . . , SEO, . JS- , .

+5

Source: https://habr.com/ru/post/1612009/


All Articles