I have built a react app and I must connect and send orders to a Rasberry Pi.
Asked
Active
Viewed 537 times
1 Answers
0
Suggest you know how to write an API server and talk to the API server using react app.
You can deploy your react app and an backend server on your raspberry pi.
You have to using a Database to store your data.
I recommend you to using SQLite as Database and Node.js to write an API server.
https://randomnerdtutorials.com/sqlite-database-on-a-raspberry-pi/

Eason
- 469
- 4
- 14
-
Hello thank you for your suggestion. Can i not use wifi to send my order? If my pi is connected to my local network? – Mahmoud Almahroum Jun 16 '20 at 08:11
-
Yes, it can be offline. If the website is host on same server. – Eason Jun 16 '20 at 08:15
-
Do you know any libraries that i can use to do that? – Mahmoud Almahroum Jun 16 '20 at 08:16
-
First you need to know how to write an API server and connect to SQLite. https://www.sqlitetutorial.net/sqlite-nodejs/connect/ – Eason Jun 16 '20 at 08:21