Git Product home page Git Product logo

codeinspector's Introduction

CodeInspector

๐Ÿ” A software quality analysis tool based on hotspot prioritization and commits ๐Ÿ› ๏ธ

Made with:
REACT FASTAPI DOCKER

๐Ÿš€ Overview

CodeInspector is a full-stack application that provides software quality analysis based on hotspot prioritization and commits. It takes a repository URL and generates insights on modified files, file churn, complexity, and priority for quality improvement, as well as insights on the commits. It provides endpoints to prioritize hotspots and analyze commits within a specified date range.

The application consists of two main components:

  • The backend: A FastAPI-based REST API that handles the analysis and provides the necessary endpoints.
  • The frontend: A React-based user interface that allows users to interact with the analysis results.

๐Ÿณ Using Docker

CodeInspector provides a Docker configuration for easy deployment. Make sure you have Docker installed on your system before proceeding.

  1. Clone the repository:
    git clone https://github.com/ArchontisKostis/CodeInspector.git
    
  2. Navigate to the project directory:
    cd CodeInspector
    
  3. Build the Docker containers:
    docker-compose up -d --build
    
  4. The backend and frontend containers will be built and started. You can access the web-app by visiting http://localhost:3000 in your web browser.

Docker Compose Services Overview

๐Ÿ“Š database Service

The database service in this Docker Compose configuration utilizes the MySQL image. It represents the MySQL database server for the Code Inspector application.

  • Image: mysql:latest
  • Environment Variables:
    • MYSQL_DATABASE: code_inspector_db
    • MYSQL_ROOT_PASSWORD: root
  • Ports: Exposes port 3306 for MySQL connections.
  • Health Check: Verifies MySQL server health using mysqladmin ping.

๐Ÿš€ backend Service

The backend service is responsible for running the Code Inspector backend application.

  • Image: archontisk/codeinspector
  • Environment Variables:
    • DB_URL: MySQL database connection URL (mysql+pymysql://root:root@database:3306/code_inspector_db).
  • Ports: Exposes port 8000 for the backend application.
  • Dependencies: Depends on the database service and starts conditionally after the database service is healthy.

๐ŸŒ frontend Service

The frontend service builds and runs the Code Inspector frontend application.

  • Build Context: ./frontend/app
  • Dockerfile: Specifies Dockerfile for building the frontend image.
  • Ports: Exposes port 3000 for the frontend application.
  • Dependencies: Depends on the backend service.

๐Ÿ“ˆ adminer Service

The adminer service includes Adminer, a lightweight database management tool, to facilitate web-based management of the MySQL database.

  • Image: adminer
  • Ports: Exposes port 8080 for Adminer's web interface.
  • Dependencies: Depends on the database service.

Note: Ensure that you have the necessary configuration details (e.g., database credentials) before accessing and interacting with the services. Adjustments may be required based on your specific setup and requirements.

๐ŸŽ“ Credits

CodeInspector was created by me (Archontis E. Kostis), as part of my bachelor thesis, with the support and guidance of Mr. Alexander Hatzigeorgiou, Vice Rector of Extroversion and International Relations of University of Macedonia and professor at the Department of Applied Informatics. The project was inspired by a shared passion for improving software quality through data-driven and mining software repositories analysis. The development of this tool would not have been possible without the open-source contributions of the FastAPI, Python, React and PyDriller communities. We are grateful for their efforts in making high-quality software accessible to everyone.

University of Macedonia Logo

codeinspector's People

Contributors

archontiskostis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

codeinspector's Issues

Handle Analysis Failure for Repositories with No Commits

Currently, our analysis process fails when encountering a repository that has no commits within the specified date range.
We need to implement a solution to handle such scenarios and provide a specific error messages when no commits are present in the repository.

Steps:

  • Detection of No Commits: Develop a mechanism to detect if a repository has no commits during the specified date range.
  • Error Handling: Implement an error handling mechanism to handle the case of no commits in the repository.
  • Custom Error Message: Design and display a specific error message indicating that no commits were found in the repository.

Improve Names for Outlier Eliminator Class and Method

The current name of OutlierEliminator and its eliminate_outliers method can be misleading since the class doesn't actually eliminate outliers but rather identifies "hotspot" files. We should improve the naming of the class and method to accurately reflect their functionality and improve code readability.

Validate Date Format to Ensure yyyy-mm-dd Format

We have to validate that the date provided is in the specified format: yyyy-mm-dd. \
Currently, if we get a different format, it can lead to unexpected results or errors. We need to implement date format validation and generate specific error messages when an incorrect format is detected.

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.