Basic RFM Analysis Implementation with Elasticsearch and FeatherJS
This project uses:
- RFM Analysis for Customer Segmentation.
- Feathers. An open source web framework for building modern real-time applications.
- Elasticsearch for storing and indexing Data.
- NodeJS Installed
- Elasticsearch Installed. It'll be easier with Docker
- Logstash or any ETL tool that can ship customer and invoice data into Elasticsearch
Getting up and running is as easy as 1, 2, 3, 4, 5.
-
Make sure you have Elasticsearch installation and configure it in ./config/default.json
-
Use Logstash to ship data from Database into Elasticsearch. In my case I shipped data from Oracle ==> Elasticsearch. Simple logstash config is in ./logtash/shipper.conf
-
Install your dependencies
cd path/to/rfm-analysis; npm install
-
Start your app
npm start
This call will index rfm data of periods (3 months, 6 months & 12 months) from customer and invoice that we shipped from database.
`curl -XPOST localhost:3030/rfm`
Copyright (c) 2018
Licensed under the MIT license.