In this portion of the series we will be:
- Creating a simple flask app with a few RESTful methods
- Testing out our RESTful methods using curl.
- Future proofing our development environment for easy and stress free deployment.
Get the Code
Clone the github repo to see the full code.
Create a flask app
Flask is a python framework for creating web applications. It has all kinds of functionality, but here we will be using just a small portion to create a few RESTful web routes.
A Note about Directory Structures
I tend to sit down with a paper and colored pens and figure out how I want my application organized. Generally, each service is in its own directory, which is then in its own docker container. A service is a single application, such as our flask app, a database, a job queue, etc. For this particular example we only have one service, the flask app, but hopefully you can see how important it is to organize your applications.