Would this be something like waiters taking orders and sending them to the kitchen?
For a universal solution, you can always go via a server. Send and receive data using ajax/xhr or even through a socket.
However, there might be a direct wifi and/or bluetooth solution, depending on your platform(s) and technical environment.
- for iOS: cordova-plugin-networking-multipeer
- for Android/BT: https://www.npmjs.com/package/cordova-plugin-networking-bluetooth
Perhaps you find more options for plugins here: Plugin Search - Apache Cordova
It is similar yes, but this would be for ordering items in bar/restaurant.
I see that ios has plugins for wifi, but it is easier for me to get it done in android os (it is cheaper) because i don't have ios developer license... I tried to find wifi plugins for android, but no success for now.
Maybe it is also more secure way to get it done through server. so the data sent to server and received from server must be stored on a database on server, sql tables for example? do you maybe have an example project so i can refer to something?
I don't have a sample project. But you will find plenty of examples online ("Tutorial ajax php mysql"; substitute your favorite script language and database). If you have never done this before, you should get hold of a good printed book about the topic. The O'Reilly series are usually good stuff.
A client/server solution is not necessarily more secure than communication on a local network or on bluetooth. But you might get more features from such solution, such as backups, additional interfaces and statistics. It would also allow you to automatically publish aggregated data to a website, your account system, etc.
Thank you. I will try to work this out.