Giter VIP home page Giter VIP logo

autocrud's Introduction

Introduction

A fully automated CRUD system with AJAX & tailwind css that seamlessly detects database columns and their requirements, generating corresponding tags for swift implementation. It also Search and Pagination Featured

The system generated every entry, be it table names, column names, or even relational data dynamically. The system uses various SQL queries to fetch data about the table in question, such as the number of columns, names of the columns, type constraints, foreign key constraints, record values and so on to seamlessly generate dynamic rows and columns for each DB entity. It also uses a bunch of keywords and cases from the table_alias.php file to identify the datatype of the columns from the database and generate corresponding input types in Insert as well as Edit forms. The code uses a variety of reusable functions from the table_fuctions.php. file to perform every task. It can be even said that the table_functions.php is the system's backbone.

To be able to make this system your own, read carefully the comments of table_alias.php and adjust the keyword according to your own needs.

Getting Started

Installation

To seamlessly integrate the AutoCRUD system into your project, follow these simple installation steps:

Download Source Code:

  • Visit the GitHub repository at AutoCRUD and download the source code.

    Integration:

  • Integrate the downloaded source code into your project's admin panel.

    Setup

    Configure AutoCRUD to align with your project requirements by following these setup instructions:

    1. Edit config.php:

    2. Locate the config.php file and update the following values:
      • Username
      • Password
      • Database name
      • Server name

    3. Customize table_alias.php:

    4. Locate the config.php file and update the following values:
      • Open the table_alias.php file.
      • Navigate to the $columnAliases array.
      • Create a switch case for every table in your database.
      • Beneath each case, assign an associative array to $columnAliases, mapping original attribute names in the table to preferred display names.

    5. Customize $tableAliases array:

    6. Store the display name of the tables in the similar fashion.\

    7. Customize $foreignKey array:

    8. Stores the primary keys of the tables that are acting as foreign keys in the corresponding table case.

    9. Customize $categoryColumnList array:

    10. Store the column of the related table that is to fetched using the foreign key. For example, category_name is fetched using the foreign key category_id from the table item_category.

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