Skip to content

This project is a temporary web-based frontend that connects with our Flask-based AI API backend. The goal is to simulate and visualize the AI responses through a browser before integrating everything into our final Flutter application.

Notifications You must be signed in to change notification settings

Video-FX-Bot/AI-implementation-flask-web-prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 

Repository files navigation

AI Implementation Flask/ FastAPI Web Prototype

This project is a temporary web-based frontend that connects with our Flask-based AI API backend. The goal is to simulate and visualize the AI responses through a browser before integrating everything into our final Flutter application.


🎯 Objective

  • Build a minimal and working frontend using HTML, CSS, and JavaScript
  • Connect it with the existing Flask API backend
  • Make it demo-ready to present to stakeholders and investors
  • Enable a smooth transition to Flutter later

πŸ‘₯ Team Responsibilities

πŸ”Ή 1. Flask/Fast Backend (API Layer)

  • Create endpoints like:
    • GET /get-response
    • POST /user-query
  • Return JSON data (mocked or real from the AI engine)
  • Ensure CORS is enabled for cross-origin calls
  • Test APIs locally via Postman or browser

πŸ—‚οΈ File: backend/app.py


πŸ”Ή 2. Web Frontend (UI Layer)

Assigned To: [Your Name / Team Member]

  • Build the structure using index.html
  • Apply styling using style.css
  • Use script.js to:
    • Call Flask API using fetch()
    • Display response on the web page
    • Handle loading states, error messages, etc.

πŸ—‚οΈ Files: frontend/index.html, frontend/style.css, frontend/script.js


πŸ”Ή 3. Integration Testing

Everyone

  • Make sure API URLs match local server (http://127.0.0.1:5100)
  • Validate if the frontend correctly displays backend data
  • Check console logs for any fetch errors
  • Debug together if something breaks

πŸ§ͺ Project Structure


ai-flask-web-prototype/
β”œβ”€β”€ backend/
β”‚   └── app.py
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ index.html
β”‚   β”œβ”€β”€ style.css
β”‚   └── script.js
β”œβ”€β”€ requirements.txt
└── README.md


πŸ›  Getting Started

1. Start Flask Backend

cd backend
python -m venv venv
source venv/bin/activate    # Windows: venv\Scripts\activate
pip install -r ../requirements.txt
python app.py

2. Run Frontend

Open frontend/index.html in your browser. Make sure script.js points to the correct API endpoint (default: http://127.0.0.1:5100).


🧠 Notes

  • Keep the code modular and clean
  • Push your updates in separate commits
  • Ping the team lead when your part is done

Let’s work smart and fast to build a great AI prototype together. πŸ’»πŸš€

About

This project is a temporary web-based frontend that connects with our Flask-based AI API backend. The goal is to simulate and visualize the AI responses through a browser before integrating everything into our final Flutter application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published