A
A
Abraham Chanski2021-01-31 08:41:27
firebase
Abraham Chanski, 2021-01-31 08:41:27

How do I add a search field to a social network clone?

I want to add to my clone the ability to search for other registered people, like in social networks, enter "Eli" for example, and it shows all users whose first / last name begins with these letters, or displays in full if you write completely.

Registered users are in the Realtime database in firebase (naturally, email / password registration is enabled.) Below is a screen.
601642b7bd2a6615580498.png

How can I make this possible now?

Here is the component from which I need to make a "search engine"

<template>
  <div class="search">
    <input type="search" placeholder="Search Twitter" v-model="search" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      search: "",
    };
  },
  methods: {

  },
};
</script>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question