Skip to content

byuidatascience/Apache_Airflow

Repository files navigation

Student Airflow Template

This is a ready-to-run Apache Airflow + Docker environment designed for classroom use. Students can use this to run Airflow DAGs that connect to MongoDB and process stock data.

Before You Start

  1. Clone the repo or click "Use this template"

  2. Open the cloned repo in VS Code

  3. Run the airflow-core-fernet-key.py script to generate a fernet key. This key is used to encrypt sensitive data in Airflow, such as passwords and connection strings. You can run this script in your terminal or command prompt.

you might need to install the cryptography library if you don't have it already. You can do this by running:

pip install cryptography

Then, run the script:

python airflow-core-fernet-key.py
  1. Copy the generated fernet key and paste it into the editme.env file in the FERNET_KEY variable. Then rename the file to just .env (remove the editme part).

  2. Make sure you have Docker and Docker Compose installed on your machine. You can download them from the official Docker website. Here is the link: https://docs.docker.com/get-docker/

✅ Getting Airflow Started

  1. In that VS Code Terminal Run:
docker compose up --build -d
  1. Open http://localhost:8080

Login with:

  • Username: airflow
  • Password: airflow

shut down

docker compose down

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages