Skip to content

About

Complete fullstack application with PostGres, Opensearch, Neo4j, Debezium and RedPanda

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Product Search Full Stack

A full product discovery demo with React, FastAPI, PostgreSQL, Debezium + Redpanda CDC, OpenSearch hybrid search, and Neo4j recommendations.

Workflow

Start

cp .env.example .env
docker compose up --build

Open the frontend:

http://localhost:3000

The platform intentionally starts with an empty catalog. On the Overview or Operations page, click Load sample catalog. The application will then:

  1. configure the Debezium connector;
  2. import the bundled 30,000 products into PostgreSQL;
  3. synchronize OpenSearch and Neo4j through CDC;
  4. build similar, alternative, and complementary relationships.

Progress is shown in the frontend. The operation is safe to retry.

Services

Service URL
Frontend http://localhost:3000
FastAPI docs http://localhost:8000/docs
OpenSearch http://localhost:9200
Neo4j Browser http://localhost:7474
Debezium Connect http://localhost:8083

Default admin key:

dev-admin-key-change-me

Optional database tools are not part of normal startup. Start them with:

docker compose --profile tools up -d

This adds OpenSearch Dashboards on http://localhost:5601 and Adminer on http://localhost:8080.

Daily commands

docker compose up -d          # start existing containers
docker compose stop           # stop without removing containers
docker compose start          # restart stopped containers
docker compose down           # remove containers, preserve data volumes
docker compose logs -f        # follow logs

Use docker compose down -v only when you deliberately want an entirely empty database again.

Custom CSV import

Use the Operations page or:

curl -X POST \
  "http://localhost:8000/api/v1/admin/products/bulk-import" \
  -H "X-Admin-Key: dev-admin-key-change-me" \
  -F "file=@products.csv"

After a custom import, wait until PostgreSQL, OpenSearch, and Neo4j counts match, then rebuild graph relationships from Operations.

Main capabilities

  • Product CRUD and CSV imports
  • Lexical, semantic, and hybrid search
  • Query normalization, autocomplete, facets, and ranking
  • PostgreSQL-to-OpenSearch/Neo4j CDC synchronization
  • Related, alternative, and complementary products
  • Interactive relationship map
  • Search analytics and zero-result reporting
  • Non-destructive batched graph rebuilds

About

Complete fullstack application with PostGres, Opensearch, Neo4j, Debezium and RedPanda

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages