Git Product home page Git Product logo

mettasurendhar / dataengineeringproject Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 10.61 MB

Data Engineering project which involves ETL using PostgreSQL and Python

Python 95.76% PLpgSQL 3.49% Dockerfile 0.26% Shell 0.49%
api dataengineering dataengineering-a dataengineering-m dataengineering-w elt elt-pipeline extraction load movie-database movies-api postgres postgresql python python3 tranformations docker docker-container docker-image dockerfile

dataengineeringproject's Introduction

Met-ELT-Project

BRIEF DESCRIPTION:

Metta's Movie API is a Python-based project designed to extract movie data from an external API (TMDB), process and filter it, and then load it into a PostgreSQL database. It provides an API endpoint to access movie data and genres. The project utilizes Flask for the API server, PostgreSQL for database management, and Docker for containerization.

TECHNOLOGIES USED:

  • Python
  • Flask
  • PostgreSQL
  • Docker

SETUP INSTRUCTIONS:

  1. Clone the repository:

    git clone [email protected]:MettaSurendhar/DataEngineeringProject.git
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Set up PostgreSQL database using Docker:

    docker-compose up -d
    
  4. Create a .env file and add the required environment variables:

    API_KEY=<your_api_key>
    GENRE_LIST_API=<genre_list_api_endpoint>
    MOVIE_LIST_API=<movie_list_api_endpoint>
    DB_HOST=<database_host>
    DB_NAME=<database_name>
    DB_USER=<database_user>
    DB_PASSWORD=<database_password>
    DB_PORT=<database_port>
    ENGINE_PASSWORD=<engine_password>
    
  5. Run the Python scripts seperately to extract, filter, and load movie data into the database:

    python dataExtraction.py
    python dataTransformation.py
    python dataLoad.py
    
  6. Run the Flask application to start the API server:

    python app.py
    
  7. Instead can run the .sh file to extract, filter, and load data and run Flask app :

    bash ./entryPoint.sh
    

ER DIAGRAM:

ER Diagram

SCREENSHOTS OF OUTPUT:

Terminal Output

Screenshot 1

API Output : /api

Screenshot 5

API Output : /api/all

Screenshot 4

API Output : /api/data/movies/all/trending/limit/10

Screenshot 2

API Output : /api/json/movies/all/trending/limit/10

Screenshot 3

CONTRIBUTION GUIDE:

Contributions to Met-ELT-Project are welcome! Follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your-feature-name).
  3. Make your changes.
  4. Test your changes thoroughly.
  5. Commit your changes (git commit -am 'Add new feature').
  6. Push to the branch (git push origin feature/your-feature-name).
  7. Create a new Pull Request.

ADDITIONAL INFO:

  • Ensure that the necessary environment variables are properly set up in the .env file for the project to function correctly.
  • The project utilizes Docker for containerization, making it easy to set up the development environment.
  • Review the requirements.txt file for all dependencies used in the project.

dataengineeringproject's People

Contributors

mettasurendhar avatar

Stargazers

Varunkumar R 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.