Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Add more details on recommendation structure
Source Link

I am building a website that uses a recommendation system. Users submit a form which is sent to the backend for the recommendation logic calculation; the recommendation response is sent back to the server and the recommendations are shown to the user.

Control flow:

  1. User submits a form on website.
  2. Using PHP, this query is sent to my Flask App.
  3. The Flask App processes the query and sends a response back to the server.
  4. [Help needed] display results to the user.

I have steps 1-3 done, but I am struggling with 4. Since the recommendations differ per user, I am not sure about which approach to take since there seems to a few alternatives. For example, these two options came to my mind – and I’m sure there’s more:

  • The Flask app could return HTML to the server which could be directly displayed on the website.

  • The Flask app could trigger a function on the server side that would generate the HTML displayed on the website.

The recommendations will have the same structure, each having some basic structured information (name, contact details, etc.) and a logo picture.

Both options have their advantages and disadvantages regarding criteria such as, ease of implementation, speed, and security. However, as a novice in the field, I would like to know what do the professionals suggest.

Hence my question is: how should I integrate the backend and the UI; and how do professional websites tackle this issue of dynamically creating content based on user parameters; is there a clear “go-to” approach?

Just for completeness, I’m using Wordpress and Elementor for hosting and for the UI; PHP on the server side, and a Python Flask app on the backend. Also, to reiterate, I am able to successfully communicate between my webpage, the server, and the Flask app.

I am building a website that uses a recommendation system. Users submit a form which is sent to the backend for the recommendation logic calculation; the recommendation response is sent back to the server and the recommendations are shown to the user.

Control flow:

  1. User submits a form on website.
  2. Using PHP, this query is sent to my Flask App.
  3. The Flask App processes the query and sends a response back to the server.
  4. [Help needed] display results to the user.

I have steps 1-3 done, but I am struggling with 4. Since the recommendations differ per user, I am not sure about which approach to take since there seems to a few alternatives. For example, these two options came to my mind – and I’m sure there’s more:

  • The Flask app could return HTML to the server which could be directly displayed on the website.

  • The Flask app could trigger a function on the server side that would generate the HTML displayed on the website.

Both options have their advantages and disadvantages regarding criteria such as, ease of implementation, speed, and security. However, as a novice in the field, I would like to know what do the professionals suggest.

Hence my question is: how should I integrate the backend and the UI; and how do professional websites tackle this issue of dynamically creating content based on user parameters; is there a clear “go-to” approach?

Just for completeness, I’m using Wordpress and Elementor for hosting and for the UI; PHP on the server side, and a Python Flask app on the backend. Also, to reiterate, I am able to successfully communicate between my webpage, the server, and the Flask app.

I am building a website that uses a recommendation system. Users submit a form which is sent to the backend for the recommendation logic calculation; the recommendation response is sent back to the server and the recommendations are shown to the user.

Control flow:

  1. User submits a form on website.
  2. Using PHP, this query is sent to my Flask App.
  3. The Flask App processes the query and sends a response back to the server.
  4. [Help needed] display results to the user.

I have steps 1-3 done, but I am struggling with 4. Since the recommendations differ per user, I am not sure about which approach to take since there seems to a few alternatives. For example, these two options came to my mind – and I’m sure there’s more:

  • The Flask app could return HTML to the server which could be directly displayed on the website.

  • The Flask app could trigger a function on the server side that would generate the HTML displayed on the website.

The recommendations will have the same structure, each having some basic structured information (name, contact details, etc.) and a logo picture.

Both options have their advantages and disadvantages regarding criteria such as, ease of implementation, speed, and security. However, as a novice in the field, I would like to know what do the professionals suggest.

Hence my question is: how should I integrate the backend and the UI; and how do professional websites tackle this issue of dynamically creating content based on user parameters; is there a clear “go-to” approach?

Just for completeness, I’m using Wordpress and Elementor for hosting and for the UI; PHP on the server side, and a Python Flask app on the backend. Also, to reiterate, I am able to successfully communicate between my webpage, the server, and the Flask app.

Markdown fixes
Source Link
Greg Burghardt
  • 46.6k
  • 8
  • 87
  • 151

I am building a website that uses a recommendation system. Users submit a form which is sent to the backend for the recommendation logic calculation; the recommendation response is sent back to the server and the recommendations are shown to the user.

Control flow:

  1. User submits a form on website.
  2. Using PHP, this query is sent to my Flask App.
  3. The Flask App processes the query and sends a response back to the server.
  4. [Help needed] display results to the user.

I have steps 1-3 done, but I am struggling with 4. Since the recommendations differ per user, I am ** not sure about which approach to take since there seems to a few alternatives**not sure about which approach to take since there seems to a few alternatives. For example, these two options came to my mind – and I’m sure there’s more:

• The Flask app could return HTML to the server which could be directly displayed on the website.

• The Flask app could trigger a function on the server side that would generate the HTML displayed on the website.

  • The Flask app could return HTML to the server which could be directly displayed on the website.

  • The Flask app could trigger a function on the server side that would generate the HTML displayed on the website.

Both options have their advantages and disadvantages regarding criteria such as, ease of implementation, speed, and security. However, as a novice in the field, I would like to know what do the professionals suggest.

Hence my question is: how should I integrate the backend and the UI; and how do professional websites tackle this issue of dynamically creating content based on user parameters; is there a clear “go-to” approach?

Just for completeness, I’m using Wordpress and Elementor for hosting and for the UI; PHP on the server side, and a Python Flask app on the backend. Also, to reiterate, I am able to successfully communicate between my webpage, the server, and the Flask app.

I am building a website that uses a recommendation system. Users submit a form which is sent to the backend for the recommendation logic calculation; the recommendation response is sent back to the server and the recommendations are shown to the user.

Control flow:

  1. User submits a form on website.
  2. Using PHP, this query is sent to my Flask App.
  3. The Flask App processes the query and sends a response back to the server.
  4. [Help needed] display results to the user.

I have steps 1-3 done, but I am struggling with 4. Since the recommendations differ per user, I am ** not sure about which approach to take since there seems to a few alternatives**. For example, these two options came to my mind – and I’m sure there’s more:

• The Flask app could return HTML to the server which could be directly displayed on the website.

• The Flask app could trigger a function on the server side that would generate the HTML displayed on the website.

Both options have their advantages and disadvantages regarding criteria such as, ease of implementation, speed, and security. However, as a novice in the field, I would like to know what do the professionals suggest.

Hence my question is: how should I integrate the backend and the UI; and how do professional websites tackle this issue of dynamically creating content based on user parameters; is there a clear “go-to” approach?

Just for completeness, I’m using Wordpress and Elementor for hosting and for the UI; PHP on the server side, and a Python Flask app on the backend. Also, to reiterate, I am able to successfully communicate between my webpage, the server, and the Flask app.

I am building a website that uses a recommendation system. Users submit a form which is sent to the backend for the recommendation logic calculation; the recommendation response is sent back to the server and the recommendations are shown to the user.

Control flow:

  1. User submits a form on website.
  2. Using PHP, this query is sent to my Flask App.
  3. The Flask App processes the query and sends a response back to the server.
  4. [Help needed] display results to the user.

I have steps 1-3 done, but I am struggling with 4. Since the recommendations differ per user, I am not sure about which approach to take since there seems to a few alternatives. For example, these two options came to my mind – and I’m sure there’s more:

  • The Flask app could return HTML to the server which could be directly displayed on the website.

  • The Flask app could trigger a function on the server side that would generate the HTML displayed on the website.

Both options have their advantages and disadvantages regarding criteria such as, ease of implementation, speed, and security. However, as a novice in the field, I would like to know what do the professionals suggest.

Hence my question is: how should I integrate the backend and the UI; and how do professional websites tackle this issue of dynamically creating content based on user parameters; is there a clear “go-to” approach?

Just for completeness, I’m using Wordpress and Elementor for hosting and for the UI; PHP on the server side, and a Python Flask app on the backend. Also, to reiterate, I am able to successfully communicate between my webpage, the server, and the Flask app.

Add clarifications based on comments
Source Link

I am building a website that uses a recommendation system. Users submit a form which is sent to the backend for the recommendation logic calculation; the recommendation response is sent back to the server and the recommendations are shown to the user.

I’m doing this for a personal project andControl flow:

  1. User submits a form on website.
  2. Using PHP, this query is sent to my Flask App.
  3. The Flask App processes the query and sends a response back to the server.
  4. [Help needed] display results to the user.

I have the main workflow mapped and completesteps 1-3 done, except for the UI partbut I am struggling with 4. Since Since the recommendations differ per user, I am struggling with choosing an approach for the UI asam ** not sure about which approach to take since there seems to be many ways of going about ita few alternatives**. For For example, these two options came to my mind – and I’m sure there’s more:

Return The Flask app could return HTML from my backendto the server which wouldcould be directly displayed on the website.

Trigger a function on the server side from the Python The Flask app. For example, have could trigger a function in PHP on the server side that would creategenerate the desired output and which would be called fromHTML displayed on the appwebsite.

Both options have their advantages and disadvantages regarding criteria such as, ease of implementation, speed, and security. However, as a novice in the field, I would like to know what do the professionals suggest.

Hence my question is: how should I integrate the backend and the UI; and how do professional websites tackle this issue of dynamically creating content based on user parameters; is there a clear “go-to” approach?

Just for completeness, I’m using Wordpress and Elementor for hosting and for the UI; PHP on the server side, and a Python Flask app on the backend. Also, to reiterate, I am able to successfully communicate between my webpage, the server, and the Flask app.

I am building a website that uses a recommendation system. Users submit a form which is sent to the backend for the recommendation logic calculation; the recommendation response is sent back to the server and the recommendations are shown to the user.

I’m doing this for a personal project and I have the main workflow mapped and complete, except for the UI part. Since the recommendations differ per user, I am struggling with choosing an approach for the UI as there seems to be many ways of going about it. For example, these two options came to my mind – and I’m sure there’s more:

Return HTML from my backend which would be directly displayed on the website.

Trigger a function on the server side from the Python app. For example, have a function in PHP on the server that would create the desired output and which would be called from the app.

Both options have their advantages and disadvantages regarding criteria such as, ease of implementation, speed, and security. However, as a novice in the field, I would like to know what do the professionals suggest.

Hence my question is: how should I integrate the backend and the UI; and how do professional websites tackle this issue of dynamically creating content based on user parameters; is there a clear “go-to” approach?

Just for completeness, I’m using Wordpress and Elementor for hosting and for the UI; PHP on the server side, and a Python Flask app on the backend. Also, to reiterate, I am able to successfully communicate between my webpage, the server, and the Flask app.

I am building a website that uses a recommendation system. Users submit a form which is sent to the backend for the recommendation logic calculation; the recommendation response is sent back to the server and the recommendations are shown to the user.

Control flow:

  1. User submits a form on website.
  2. Using PHP, this query is sent to my Flask App.
  3. The Flask App processes the query and sends a response back to the server.
  4. [Help needed] display results to the user.

I have steps 1-3 done, but I am struggling with 4. Since the recommendations differ per user, I am ** not sure about which approach to take since there seems to a few alternatives**. For example, these two options came to my mind – and I’m sure there’s more:

The Flask app could return HTML to the server which could be directly displayed on the website.

The Flask app could trigger a function on the server side that would generate the HTML displayed on the website.

Both options have their advantages and disadvantages regarding criteria such as, ease of implementation, speed, and security. However, as a novice in the field, I would like to know what do the professionals suggest.

Hence my question is: how should I integrate the backend and the UI; and how do professional websites tackle this issue of dynamically creating content based on user parameters; is there a clear “go-to” approach?

Just for completeness, I’m using Wordpress and Elementor for hosting and for the UI; PHP on the server side, and a Python Flask app on the backend. Also, to reiterate, I am able to successfully communicate between my webpage, the server, and the Flask app.

added 111 characters in body
Source Link
Loading
Source Link
Loading