Giter Site home page Giter Site logo

es2's Introduction

ES2 Backend

Environment

PostgreSQL

pgAdmin

RabbitMQ Console

RabbitMQ

Kibana

LogStash

Elastic Search

Use Elastic Stack Software Structure

This is an initial proof of concept app of how to implement a search feature using Elasticsearch with Django and Vue.js.

Content:

  1. Overview
  2. Set up the working environment
  3. Set up Elasticsearch & Kibana servers using Docker
  4. Run Django server

1. Overview

In this web application users can add new articles by providing a title and the content of the article, and some tags if they want. They can also search for articles from the “Articles list”.

2. Set up the working environment

Use Docker-Compose to set up Environment

docker-compose up -d

After running the command above the output should look like below:

Starting elasticsearch ... done
Starting kibana        ... done
Staring RabbitMQ       ... done
Staring PostgreSQL     ... done
Staring PgAdmin        ... done
Starting LogStash      ... done

2.2 Install dependencies into an isolated environment:

pipenv install

Note: The command docker-compose up -d should be run from the root directory because that's where docker-compose script lives.

3. Run Django server

From your terminal run this command to start a local web server:

pipenv run python manage.py runserver

And in your terminal you will see an output similar to the one below:

Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).
July 01, 2021 - 21:06:12
Django version 3.2.3, using settings 'django_elasticsearch.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

You can copy the url http://127.0.0.1:8000/ from the output and paste it directly to your browser's search bar.

Alternatively, you can click at the link http://127.0.0.1:8000/ from the output while pressing the Command ⌘ key, and it will open a new browser tab for the web application.

django-elasticsearch-vuejs

es2's People

Contributors

fan9704 avatar fatse avatar imgbotapp 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.