https://github.com/zkan/simple-friend-recommender
Simple Friend Recommender
https://github.com/zkan/simple-friend-recommender
airflow data-engineering data-pipeline python
Last synced: 2 months ago
JSON representation
Simple Friend Recommender
- Host: GitHub
- URL: https://github.com/zkan/simple-friend-recommender
- Owner: zkan
- License: mit
- Created: 2021-04-03T01:25:56.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-06T07:10:52.000Z (about 5 years ago)
- Last Synced: 2025-08-25T09:10:31.502Z (10 months ago)
- Topics: airflow, data-engineering, data-pipeline, python
- Language: JavaScript
- Homepage:
- Size: 2.07 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Friend Recommender
Project to demonstrate stuff a data engineer should know
## Getting Started
### Starting the Project
```sh
./start.sh
```
Note: If you're using Mac, run `./start-mac.sh` instead.
Then we can go to the survey with the following links:
* http://localhost:8000/questions/0
* http://localhost:8000/admin
For Airflow UI, we go to:
* http://localhost:8080
### Stopping the Project
```sh
./stop.sh
```
Note: If you're using Mac, run `./stop-mac.sh` instead.
### Testing an Airflow Task
```sh
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:

1. File system connection:

### Starting a Simple Dashboard
It shows an answer count.
```sh
python3 -m http.server 8088
```
Then we go to http://localhost:8088/answer_count.html.
### Starting a Jupyter Server (Local)
```sh
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.
```sh
python3 -m venv ENV
source ENV/bin/activate
pip install -r requirements.txt
```
To deactivate, run:
```sh
deactivate
```