Receiving JSON in the frontend
The goal will be to receive an asynchronous JSON from the backend that JavaScript will detect in an event. With the data, we will show in the HTML the information to the visitor:
- We create a new HTML in
app/simple_app/templates/bingo.html
that will contain all the frontend:{# app/simple_app/templates/bingo.html #} <! doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user scalable=no, initial-scale=1.0, maximum- scale=1.0, minimum-scale=1.0"> <title>Bingo</title> </head> <body> <h1...