Giter Club home page Giter Club logo

b2w-challenge's Introduction

B2W Data Engineer Challenge

Description

Develop a job to find carts abandoned by e-commerce customers. Although the subject is rich, in the test the definition of cart abandonment will be simplified.

Enviroment

OS: Ubuntu

OS Version: 20.04.1 LTS x64

Python Version: 3.8.5

Apache Beam Version: 2.25.0

Requirements

To run you will need git pkg and virtualenv python library

  1. Installing git via apt:
$ sudo apt-get install git
  1. Installing Python virtualenv lib:
$ pip3 install virtualenv

Setup

Open your terminal and follow the steps:

  1. Clone the repository:
$ git clone https://github.com/JnsFerreira/b2w_challange.git
  1. Change to repo directory:
$ cd b2w_challange
  1. Activate the virtual enviroment:
$ source b2w_challange_env/bin/activate

Running

If you want to use default input and output directories:

python3 abandoned_carts.py

Otherwise, to specify input and output directories:

python3 abandoned_carts.py --input [path_to_input] --ouput [path_to_output]

Checking the output file

To see the output file content, type on your terminal:

$ cat -n output/abandoned_carts-00000-of-00001.json

References

b2w-challenge's People

Contributors

jnsferreira avatar

Watchers

 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.