Giter Site home page Giter Site logo

leoguilen / search-engine-microservices-with-redis-stack Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 18.37 MB

Search engine system for articles using redis technology stack. This project was produced for the participation of the Redis hackathon promoted by the Dev Community. https://dev.to/devteam/announcing-the-redis-hackathon-on-dev-3248

License: MIT License

Go 11.24% C# 40.39% Python 1.51% JavaScript 10.75% HTML 1.91% Vue 31.74% CSS 2.45%
azure-functions colly golang web-crawler dotnet graph redis redis-stack graphql

search-engine-microservices-with-redis-stack's Introduction

Articles Discovery Engine

Search engine system for articles using the redis technology stack. A tool that extracts articles and streams this information to the redis cluster, where processing is done with Redis Gears to add the data as JSON documents in RedisJson and indexes it to enable search with RediSearch.

Architecture Diagram

Architecture Diagram Image

Features demo

  • Demo Web Application: Demo Web Application

  • RedisJSON Data: RedisJSON data

  • RedisGears Function Registered: RedisGears function

  • RediSearch search indexed documents: RediSearch searching

  • Backend Query API: Query Api search response data

How it works

How the data is stored:

Refer to this example for a more detailed example of what you need for this section.

How the data is accessed:

Refer to this example for a more detailed example of what you need for this section.

How to run it locally?

Prerequisites

  • Go - v1.18.4
  • Dotnet - v6.0.108
  • Docker - v20.10.14 (optional)

Local installation

Go to /deploy/docker folder (cd ./deploy/docker) and then:

# run docker compose or install redis manually
docker-compose up -d --build

Go to /src/functions folder (cd ./src/functions) and then:

# Run backend
- Go func:
cd ./src/functions/web-clawler-worker
go build ./cmd/main.go
func start

- Dotnet func:
cd ./src/functions/query-api
dotnet build
func start

Go to /src/web/articles-discovery-ui folder (cd ./src/web/articles-discovery-ui) and then:

# Run frontend
cd ./src/web/articles-discovery-ui
npm run serve

Deployment

...

More Information about Redis Stack

Here some resources to help you quickly get started using Redis Stack. If you still have questions, feel free to ask them in the Redis Discord or on Twitter.

Getting Started

  1. Sign up for a free Redis Cloud account using this link and use the Redis Stack database in the cloud.
  2. Based on the language/framework you want to use, you will find the following client libraries:

The above videos and guides should be enough to get you started in your desired language/framework. From there you can expand and develop your app. Use the resources below to help guide you further:

  1. Developer Hub - The main developer page for Redis, where you can find information on building using Redis with sample projects, guides, and tutorials.
  2. Redis Stack getting started page - Lists all the Redis Stack features. From there you can find relevant docs and tutorials for all the capabilities of Redis Stack.
  3. Redis Rediscover - Provides use-cases for Redis as well as real-world examples and educational material
  4. RedisInsight - Desktop GUI tool - Use this to connect to Redis to visually see the data. It also has a CLI inside it that lets you send Redis CLI commands. It also has a profiler so you can see commands that are run on your Redis instance in real-time
  5. Youtube Videos

search-engine-microservices-with-redis-stack's People

Contributors

leoguilen avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.