Stock Data Visulization & Analyzation Flask Server Google Chart

Flask Server

Introduction

Flask is a lightweight web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications. The advantage is esay to learn and use. For some small personally-used server, it's good. But for complex Enterprise Application, I recommand SpringBoot. Official Link: Flask Doc

Get Started

Now I'll establish a Minimal Application. When you access the server port, it will return you some data for GET_Request. You can start the server by command:

python/python3 flaskApp.py

As you can see, @app.route('') specifies the url mapping. The default request type is GET. And for the third mapping, the 'id' in a bracket represents a variable, which is commonly used when we retrieve data from database.

Conclusion

Till now, I've covered the basic usage for Flask Server. It's really convinient for small application. If you want to know more detail, go to its official website.