Coder Social home page Coder Social logo

zkan / simple-friend-recommender Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 2.12 MB

Simple Friend Recommender

License: MIT License

Python 6.10% HTML 1.37% CSS 32.53% JavaScript 58.83% Dockerfile 0.13% Shell 0.10% Jupyter Notebook 0.93%
python airflow data-engineering data-pipeline

simple-friend-recommender's Introduction

Simple Friend Recommender

Project to demonstrate stuff a data engineer should know

Getting Started

Starting the Project

./start.sh

Note: If you're using Mac, run ./start-mac.sh instead.

Then we can go to the survey with the following links:

For Airflow UI, we go to:

Stopping the Project

./stop.sh

Note: If you're using Mac, run ./stop-mac.sh instead.

Testing an Airflow Task

airflow tasks test survey_data_processing transform_data_for_recommender 2021-04-04

Setting Up the Airflow's Connections

In this talk, we'll set up 2 connections as follows:

  1. Postgres connection:

    Survey DB Conn

  2. File system connection:

    Survey File Conn

Starting a Simple Dashboard

It shows an answer count.

python3 -m http.server 8088

Then we go to http://localhost:8088/answer_count.html.

Starting a Jupyter Server (Local)

cd airflow/dags/notebooks
jupyter notebook --ip=0.0.0.0

Go to http://localhost:8888 if your Web browser is not automatically fired up.

Note that We'll need to set up an virtual environment first under the folder airflow/dags/notebooks in case it hasn't been done.

python3 -m venv ENV
source ENV/bin/activate
pip install -r requirements.txt

To deactivate, run:

deactivate

simple-friend-recommender's People

Contributors

zkan avatar gatukgl avatar

Stargazers

Max Natthawut Adulyanukosol avatar Kamolphan Lewprasert avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

gatukgl

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.