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 ...
Get Raspberry Pi 2 Server Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.