Coder Social home page Coder Social logo

klurpicolo / dataframe-cleaner Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 570 KB

Django-React full data for upload and cleaning dataframe

License: MIT License

JavaScript 33.14% Makefile 1.54% Dockerfile 1.19% Python 59.29% HTML 2.31% SCSS 0.88% Shell 1.64%

dataframe-cleaner's Introduction

Dataframe Cleaner

This project is based on django-react-boilerplate, offering various configurations and setups to expedite Django+React stack development.

Main Components

  • Django: Backend framework
  • React: Frontend library
  • Webpack: Bundler for static assets
  • Material-UI: Provides useful UI components, including tables
  • Mongo: Stores dataframe process metadata, offering flexibility in schema (Note: Ensure long-term schema consistency)
  • Minio: Object storage compatible with Amazon S3, used for storing dataframe files

Project Architecture

Project Architecture

Running the Project with Docker

Prerequisites

  • Make: Simplifies setup with useful command aliases
  • Docker: Allows easy deployment via docker-compose

Steps

  1. Navigate to the project root directory.
  2. Run make docker_setup.
  3. Run make docker_up.
  4. Access MINIO webpage at localhost:9001.
    • Login with credentials: user/password.
    • Manually create a new bucket named dataframes. MINIO Webpage
    • Set access policy to public for the newly created bucket. Access Policy
  5. Use Mongo client of your chioce, and connect to URL mongodb://localhost:27017. Then create a new Mongo database named dataframe_cleaner with collection dataframe_metadata. Mongo Database
  6. Access localhost:8000 to use Data Cleaner.

Further Suggestions for Production Use

These suggestions aim to enhance the project for production, some of which were deferred due to time constraints:

Feature

  • Parameterize constants like category thresholds for user customization.
  • Implement version rollback and processing from specific versions.
  • Enable pagination for dataframe API to facilitate viewing large datasets.
  • Implement user authentication and authorization.
  • Provide detailed explanations in the UI about decision processes for user clarity.
  • The current approach of fetching progress status involves constant pooling every 1 second. This is not ideal as it creates unnecessary connections to the backend. It would be better to use Long pooling, Server-Sent Events (SSE) or Websockets.

Backend

  • Implement robust transaction handling across data sources.
  • Modularize the dataframe processing app for better backend isolation.
  • Set up MINIO retention policies for efficient disk space management.
  • Segregate servers for user requests and data processing to facilitate load scaling.
  • Consider email notifications for users upon completion of data processing for better user experience with large datasets.

Frontend

  • Transition to TypeScript for improved type consistency.
  • Integrate Redux for better state management.
  • Add a proper styling to frontend

Testing

  • Develop Postman test scripts.
  • Conduct integration tests for both backend and frontend.
  • Perform load testing on dataframe processing.

dataframe-cleaner's People

Contributors

klurpicolo 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.