4 ms·
Sorry for the dumb questions, I was just trying to understand the precise architecture and solution here. So the "local application that generates static files
by ryfia 7y ago
Sorry for the dumb questions, I was just trying to understand the precise architecture and solution here.
So the "local application that generates static files" is the one used by employees of the restaurant when a customer makes an order? Or is that used just for maintenance purposes when changing formats of the orders customers can do. But what I was confused most about was what "polls for orders" meant in this context.
The other thing I was confused about was the generation of "static files for customer ordering". So the application generates these files, which are presumably an html form (and/or corresponding PHP script) and uploads them to the server. And the server's html static pages that are used to order are accessed either locally on the box itself or through another computer on the local network connection (since you mentioned that it can run even when internet is down). Is my understanding correct?
- codr7 7y agoThe application is used for everything that happens locally, including taking orders in the restaurant and organizing deliveries. Polls for orders means it reads the json-file that is appended to via the php-script when a customer makes an order from the web interface and imports new orders into the local database. The application generates json-files, which are then read by static html files. This makes it easier to test with stub data and allows shipping the html/css to a designer if/when they want something nicer looking. The html files and generated json data is never used locally.