Skip to content
 
 

Repository files navigation

How to initialize the project:

First you must follow the instructions on where to create the environment variables in the .env.example file. Contact repository administrators to get environment variable values.

With the environment configured, run the following command:

docker-compose up -d --build

To remove all data, run the following command:

docker-compose down --volumes

The Python environment should be configured with the following commands:

python -m venv env .\env\Scripts\activate pip install -r .\requirements.txt

The ETL pipeline can be run with the following commands:

  • python .\main.py --step {0} --store {1}:
    • step:
      • 0 (default): run all the pipeline;
      • 1: extract data;
      • 2: transform data;
      • 3: execute clustering;
      • 4: load data into PostgreSQL;
      • 5: upsert data into PostgreSQL;
      • 6: load data into Elasticsearch.
    • store: the id of the store to execute, executes for all stores if nothing is passed
  • You can only run steps 4, 5 and 6 to test the search results.

The frontend can be run with the following commands:

npx expo start

Routes

About

Smart market price optimization system that aggregates real-time supermarket data using ML clustering, and generates cost-efficient shopping lists.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages