DEV Community

Nikita Gladkiy
Nikita Gladkiy

Posted on

Python server + Web client

Hello. I wrote python script that connects to DB (GE Proficy Historian), sends SQL request to it and gets data back (shows data in command line). I need to set up server and create simple web interface and would be glad if you could recommend me some solution for server (to execute this Python script) and some solution for web client interface (data, which I receive are manufacturing process data, so better to have possibility to show them as diagrams). Just architecture. I am thinking about React highcharts. Maybe something better (free and open-sourced)? And what to use as Python server (linux based?)?

Thanks

Top comments (3)

Collapse
 
qqqoid profile image
Salavat D. Samigoullin • Edited

Hey. No reason to run any servers if you doesn't planning to publish results of your work to wider public. Just use any web framework you like, ill recommend flask for beginning. You can run own web server with five strings of code. Thats enought till you practice in coding. If you are thinking about learning react - better way is not fully functional web server, but web api for your react application. Flask is also good enought for that. React as a part of js ecosystem have tonns of charts libraries for any taste. Try to google fully functional, simple enought, samples, react and flask also have huge community and alot of howto in the web. Sorry for my english :) thats not my strongest suit

Collapse
 
qqqoid profile image
Salavat D. Samigoullin

After some pratice you can serve your flask application with, for example, uwsgi or something else and nginx as reverse proxy (for example too). But you doesnt need all of this stuff for start, flask is just enought for beginning. Try it, thats really easy.

Collapse
 
inkerinmaa profile image
Nikita Gladkiy

Thank you! I'll try this way.