Skip to content

Latest commit

 

History

History
63 lines (35 loc) · 2.05 KB

010-application-development.md

File metadata and controls

63 lines (35 loc) · 2.05 KB

Application Development

It is time now to see how to use RediSearch in your application.

You can find the same REST Service that uses RediSearch developed with different programming languages.

The frontend is created using a Vue.js application that let you run search queries using each of the REST backend.

Application Architecture

Run the Sample Application

The application and all the services, including RediSearch, are available as a Docker Compose application.

If you have not already downloaded the project, clone it:

> git clone https://github.com/RediSearch/redisearch-getting-started.git

> cd redisearch-getting-started

To run the application:

> cd sample-app

> docker-compose up --force-recreate --build

This Docker Compose will start:

  1. A Redis Stack container on port 6379. The redis-cli can be used with this container once the ports are exposed
  2. The Java, Node and Python REST Services available on port 8085, 8086, 8087
  3. The frontend on port 8084
  4. A second RediStack container will start on port 6380 just to load the sample data to the redis stack instance running on port 6379. This container exits once the sample data has been loaded to the 6379 container

Once started you can access the application and its services using the following URLs:

Stop and Delete Everything

Run the following command to delete the containers & images:

> docker-compose down -v --rmi local --remove-orphans