Frameworks

Frameworks

To structure our program a framework is used. A framework provides you with the certainty that you are developing an application that is in full compliance with the business rules.

It allows developers to save time by re-using generic modules in order to focus on other areas. Without, however, ever been tied to the framework itself.

Integration

In order to choose the best suited framework, a little research was done to see what framework filled the tasks we had. The main task is a good interaction with REST and API's.

NodeJS

NodeJS is a really big framework, and the first framework that was tested before deciding to write the code in Python. The first research was done in JavaScript. But because Javascript doesn't have the many libraries as Python on Hardware the choice went to go further into Python.

Django

Django is one of the biggest frameworks in Python and has a good interaction with API's and hardware, therefore was Django to most logistical framework to go forward.

Though Django is the most obvious choice it wasn't the fastest way to have a quick demo. Therefor was the first demo created with Flask.

Flask

Flask is a microframework for Python, it's one of the most easiest ways to setup a simple web server.

The following code shows a simple web application that prints "Hello World!":

from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
if __name__ == "__main__":
app.run()