Extra frameworks for nginx
Now that we have nginx
up and running, we have a wide choice of frameworks or programming languages that we can use to create programs that will expose APIs to our basic HTML page.
We will leverage the nginx
location blocks (virtual directories) to allow us to mix and match programming languages to deliver rich content to simple HTML pages using jQuery Java Scripting.
Python API
Python comes pre-installed with Raspbian and is the programming language of choice for Raspberry Pi. It has a rich library that allows you to access the GPIO and other system software, and there is an abundance of documentation available on the Internet.
It is an easy first language to learn, as you can create applications with fewer lines of code than in C++ or Java. You need to understand that Python is a programming language and not a web content delivery framework. This said, it is still possible to deliver web content with Python by writing specific responses. This will allow us to leverage...