Learn Docker With My Newest Course

Dive into Docker takes you from "What is Docker?" to confidently applying Docker to your own projects. It's packed with best practices and examples. Start Learning Docker →

Build a SAAS App with Flask: Part 4

build-a-saas-app-with-flask-part-1.jpg

Learn about the Build a SAAS App with Flask project, this is part 4 of a 5 part series.

Quick Jump:

This Article Is Outdated

Build a SAAS App with Flask been completely re-recorded from scratch as version 2.

Read About v2

The source code can be found here: https://github.com/nickjj/build-a-saas-app-with-flask

# Looking for the Other Parts of This Series?

# What’s Been Added Since Part 3?

Real time tweets are streamed over a websocket server. I know part 3 ended off with better tests coming next, but that didn’t seem worthy of a dedicated post.

The good news is there’s a lot higher test coverage now and the tests have been re-worked quite a bit. The important bits of the app have very high test coverage.

build-a-saas-app-with-flask-v1-test-coverage.jpg

Twitter stream

  • Connect to Twitter’s streaming API
  • Read in tweets as they come in

build-a-saas-app-with-flask-v1-twitter-stream.jpg

Broadcast queue

  • Broadcast the stream events through a rate limited task queue

build-a-saas-app-with-flask-v1-broadcast-queue.jpg

Paid members can view it in a browser

build-a-saas-app-with-flask-v1-real-time-stream.jpg

CLI additions

  • run routes to get a list of all available routes
  • run stream to listen, broadcast or fake broadcast to the websocket server

# On the Horizon

A lot of refactoring to clean up and normalize the code base. Now that we have a lot of test coverage, this is the perfect time for doing that.

Never Miss a Tip, Trick or Tutorial

Like you, I'm super protective of my inbox, so don't worry about getting spammed. You can expect a few emails per year (at most), and you can 1-click unsubscribe at any time. See what else you'll get too.



Comments