Skip to content

A website to seamlessly convert text prompts into fully formatted files.

Notifications You must be signed in to change notification settings

justsomerandomdude264/File_AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FileAI Logo

FileAI: Transforming Text Prompts into Fully Formatted Files


Overview

FileAI is a personal project designed to streamline the process of converting simple text prompts into fully formatted files. It provides a seamless and intelligent solution for users who need structured documents, reports, or data files without manually formatting them.


Use Cases

Reports & Documents – Turn brief text into structured reports.
Spreadsheets – Generate organized Excel sheets.
Visualizations – Create charts & bar graphs.
PDFs – Auto-format content into PDFs.


Tech Stack


Development Setup

Follow these steps to run the File AI project locally, make changes, and test it.


Clone the Repository

First, clone the repository and navigate to the project directory:

git clone https://github.com/justsomerandomdude264/File_AI.git  
cd File_AI  

Environment Setup

Create two .env files for configuration.

🔹 Root Directory .env

Create a .env file in the root directory with the following content:

MYSQL_ROOT_PASSWORD=ROOT PASSWORD  
DB_USER=DATABASE USER  
DB_PASSWORD=DATABASE USER PASSWORD  

🔹 Backend Directory .env

Create another .env file inside the backend directory:

OPENAI_API_KEY="YOUR OPENAI API KEY"  

DB_ROOT_PASSWORD=ROOT PASSWORD  
DB_NAME=fileai_db  
DB_USER=DATABASE USER  
DB_PASSWORD=DATABASE USER PASSWORD  
DB_HOST=db  
DB_PORT=3306  
TEST_DB_NAME=fileai_test  

DJANGO_SECRET_KEY="YOUR DJANGO SECRET KEY"  

TEST=1  

SENDGRID_API_KEY="YOUR SENDGRID API KEY"  
TWILIO_ACCOUNT_SID="ACCOUNT SID"  
TWILIO_AUTH_TOKEN="ACCOUNT AUTH TOKEN"  

Run with Docker

If you prefer Docker, simply run:

docker-compose up  

Manual Setup (Without Docker)

If you don't want to use Docker, follow these steps:

1️. Ensure MySQL Database is Running

2. Setup Python Virtual Environment

Create and activate a virtual environment, then install dependencies:

python -m venv venv
venv/Scripts/activate
pip install -r requirements.txt  

3. Run the Backend

Navigate to the backend folder and start the Django server:

cd backend  
python manage.py runserver  

4. Run the Frontend

Navigate to the frontend folder and start the Next.js development server:

cd frontend_nextjs  
npm run dev  

Complete!

Now, open your browser on localhost:3000 if running manually and localhost:80 if running docker and start using File AI 🎉


Contributions

Please feel free to contribute to this projects, open issues and pull requests.


About

A website to seamlessly convert text prompts into fully formatted files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published