#Difficulty Linking client side code with Flask Server in House Price Prediction App

1 messages · Page 1 of 1 (latest)

fringe beacon
#

Introduction:
I am working on an end-to-end house price prediction machine learning model, and I am facing challenges in integrating my Flask server with the client-side code written in HTML, CSS, and JavaScript. The server-side code is functional as tested using Postman, but I encounter a "Not Found" error when running the server.py file. I suspect the issue lies in linking my HTML with the server.py file, but I need assistance in resolving this.

Description:
I have developed the server-side using Flask, and the client-side using HTML, CSS, and JavaScript. However, due to my limited knowledge in JavaScript, I am unsure if everything is properly integrated. Additionally, when I run the server.py file, it results in a "Not Found" error. I suspect that the HTML is not properly linked to the server.py file, but I need clarification and guidance on how to establish this connection.

Relevant Code:
GitHub: https://github.com/Asifdotexe/real-estate-price-prediction/tree/main
the folder "server" has the Flask server application and "client" has the HTML, CSS and JavaScript

Request for Assistance:
I need help in ensuring that my client side code is correctly linked with the Flask server, and I would appreciate guidance on how to resolve the "Not Found" error when running the server.py file. Additionally, any suggestions for improving the integration of the client and server sides of my application would be highly valuable.

GitHub

The objective of this project is to apply my knowledge of data science and machine learning to create a house price prediction model in a well documented fashion - Asifdotexe/real-estate-price-pred...

vale plank
#

I'm going to start by saying that Flask is a full-stack framework. In other words, you can use flask to render your html and you even have additionnal tools that makes everything much simpler. So, I'm really curious as why you decided to go with that kind of architecture. It seems very unnecessary to me. You could've saved yourself a lot of code by using flask templating tools.

The microservice architecture that you went with increase by a lot the complexity of your application for very little gain in your case. There's lots of things you'll have to learn how to manage and deployment will be a pain.

I really recommend that you look into flask templating and switch to a monolithic architecture.
https://flask.palletsprojects.com/en/3.0.x/quickstart/#rendering-templates

.