This project is a data generation and database management system that leverages the Eden AI API to create realistic data and manage databases seamlessly.
- Generate realistic data using the Eden AI API.
- Create database schema based on user input (database name, number of tables, table columns).
- Populate the database with realistic data entries.
- Download the database schema in an SQL file format.
- User-friendly web interface for easy interaction.
- Frontend: HTML, CSS, JavaScript
- Backend: Flask (Python)
- Database: MySQL
.
├── config.py
└── Database_Generator
├── __init__.py
├── static
│ ├── index_style.css
│ ├── outer_style.css
│ ├── script.js
│ ├── style.css
│ └── table_style.css
├── templates
│ ├── index.html
│ ├── output.html
│ └── table.html
└── utils
├── api.py
├── create_tables.py
├── generate_schema.py
└── insert_query.py
-
Clone this repository to your local machine:
git clone https://github.com/lokeshdangii/Prayatn_Hackathon
-
Navigate to the project directory:
cd Prayatn_Hackathon
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up your API key for the Eden AI API in
config.py
. -
Run the application using Flask:
flask --app Database_Generator/__init__.py run
-
Access the web interface in your browser at http://localhost:5000.
- Open the web interface and provide the database name and number of tables.
- For each table, specify column details (name and data type separated by a colon).
- Submit the form to create the database schema and populate it with realistic data.
- Download the generated database schema in an SQL file format for further use.