juhoen / tornado-swagger-example

Implement Swagger with your Tornado project

Home Page:https://medium.com/@juhoenala/using-swagger-with-tornado-a6f051342718

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tornado Swagger implementation

Implement Swagger in your Tornado project. The related article can be found from Medium.

Getting started

Installing requirements

To run this application, you must have pipenv installed on your machine. If you are unfamiliar with Pipenv, I recommend reading through their documentation. Installation guide can be found from here.

Now, you can install all the requirements by running

pipenv install

Running the application

The application entry file is app.py. First, activate the virtual environment by running ...

$ pipenv shell

... and then, run the application ...

$ python app.py

Note

Please note, that this project is purely written for example purposes. Having said that

  • PEP8 violations might be present
  • Proper testing is missing
  • Lacking a proper database implementation
  • Some error handlings might be missing for the sake of simplicity