GithubHelp home page GithubHelp logo

nikunjkothiya / elasticsearch-laravel-react Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.45 MB

How to integrate elastic search in laravel and how to work with elastic search DB inside laravel

Shell 0.02% PHP 1.96% CSS 0.06% JavaScript 97.95% Blade 0.01%

elasticsearch-laravel-react's Introduction

About The Project

  1. First you need to set .env and php 8.1 apache2 server for run this project
  2. Inside the terminal run => composer install
  3. Inside the terminal run => npm install && npm run dev ( npm run dev for react js compilation ) Note : Please start your elastic search server and update the config host,port,username,password in config\elasticsearch.php file.
    • Also you need to add index inside elastic search before add entry inside elastic search. For that execute => php artisan elasticsearch:create-book-index
  4. Inside the terminal run => php artisan db:seed --class=BooksSeeder ( for fake data insert inside the DB. Every time you will get 15000 records during seed) Note : You don't need to add entries inside elastic search index because during model entry creation time automatically entry is created inside elastic search also.
  5. Inside the terminal run => php artisan serve ( for generate live url like => 127.0.0.1:8000 )
  6. You can see on the home page there is books listing with functionality of search records of book and with pagination api call
  7. Also for book full details you can click on Full Details button.
  8. On the Header there are two Links
    1. User Listing => For local user or public view of book store URL => (http://127.0.0.1:8000/)
    2. Admin Listing => For Admin user add/update/delete/list records. URL => (http://127.0.0.1:8000/allListing)

Note : React Js code is inside of Component folder in resources directory.

elasticsearch-laravel-react's People

Contributors

nikunjkothiya avatar

Watchers

 avatar

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.