Copied URL with current time.
0:00 / 0:00

Cover Tuner Uses NLP to Help Improve Your Cover Letters

In this episode of Running in Production, Saad Malik talks about building a free cover letter analysis tool with Flask and Python. It uses NLP (Natural language processing) and has been up and running on Google App Engine since April 2020.

Saad goes over various Python NLP libraries, processing 400+ cover letters in his first month after shipping an MVP, using MongoDB as a primary database, keeping his front-end simple with a bit of jQuery, what itโ€™s like to deploy a Python app using Google App Engine and more.

Topics Include

  • 2:54 โ€“ You can upload your cover letter and get back an analysis without an account
  • 3:50 โ€“ Motivation for using Flask and Python
  • 4:48 โ€“ Writing the โ€œbusiness logicโ€ in a standalone script before adding a web layer
  • 5:48 โ€“ What is NLP (Natural language processing) and what Python libraries exist for it
  • 7:01 โ€“ Using an NLP library vs using a full text search database
  • 8:14 โ€“ About 1,000 users a month go to the site and 50% of them upload a cover letter
  • 9:25 โ€“ Lots of users re-upload new copies of their cover letter after making changes to it
  • 10:06 โ€“ Server side rendered templates with Jinja plus a touch of jQuery here and there
  • 10:53 โ€“ After submitting a cover letter, an ajax response fills in the info after ~5 seconds
  • 11:31 โ€“ Gunicorn is used as the app server for Flask
  • 11:46 โ€“ Why Saad chose to use Google App Engine over using Google Compute Engine
  • 12:43 โ€“ Motivation for using Google App Engine over Heroku and other PaaS alternatives
  • 14:09 โ€“ Itโ€™s mostly a monolithic application but with a separate script that runs locally
  • 14:59 โ€“ The local script helps validate cover letters
  • 16:47 โ€“ MongoDB Atlas is used to host MongoDB along with Google Cloud Storage
  • 17:51 โ€“ Why did you choose MongoDB over PostgreSQL or another SQL database?
  • 18:50 โ€“ MongoDB Compass is a way for you to visually explore your data
  • 19:29 โ€“ Docker isnโ€™t being used in development but app engine uses it in production
  • 20:20 โ€“ nginx isnโ€™t needed because app engine handles all of that for you
  • 20:57 โ€“ App engine is nice but it does come at a price (itโ€™s quite a bit more expensive)
  • 22:13 โ€“ App engine costs wonโ€™t necessarily scale linearly with your traffic
  • 23:46 โ€“ A run down on all of the Google Cloud services Saad is using and how they connect
  • 25:14 โ€“ Are MongoDB databases really schemaless?
  • 26:05 โ€“ PyMongo is used to connect the Python app to MongoDB
  • 27:13 โ€“ It only took 4-5 days to turn the standalone script into an MVP Flask app
  • 29:13 โ€“ Only the Python NLP libraries are note worthy libs to make this app work
  • 29:44 โ€“ Thereโ€™s no user authentication needed because no user accounts are necessary
  • 30:14 โ€“ WuFoo is used to accept form submissions using their free tier
  • 30:35 โ€“ WTForms is also used to process the cover letter form submissions
  • 31:17 โ€“ Google Search Console helped make the site more mobile friendly
  • 32:09 โ€“ The site isnโ€™t using Bootstrap, itโ€™s just plain old hand rolled CSS and JavaScript
  • 32:53 โ€“ Both app engine and MongoDB Atlas provide notifications for various events
  • 33:26 โ€“ Walking through deploying code from development to production on app engine
  • 34:38 โ€“ Saad has tests set up with Pytest
  • 35:09 โ€“ What exactly is that YAML file with app engine?
  • 35:48 โ€“ Dealing with secret keys
  • 37:05 โ€“ Both MongoDB Atlas and Google App Engine have tools for disaster recovery
  • 38:17 โ€“ Alerts can be set up to measure resource consumption, including cost limits
  • 39:22 โ€“ App engineโ€™s price is high, Saad would probably use Google Compute Engine instead
  • 40:47 โ€“ Best tips? Be mindful of the SAAS tools you use and how they interact with your app
  • 42:11 โ€“ If you crank out code ASAP to ship an MVP, donโ€™t forget to go back and refactor
  • 43:10 โ€“ Using the Spyder IDE to help develop certain features faster and easier
  • 44:28 โ€“ If you want to contact Saad you can find him on LinkedIn
๐Ÿ“„ References
โš™๏ธ Tech Stack
๐Ÿ›  Libraries Used

Support the Show

This episode does not have a sponsor and this podcast is a labor of love. If you want to support the show, the best way to do it is to purchase one of my courses or suggest one to a friend.

  • Dive into Docker is a video course that takes you from not knowing what Docker is to being able to confidently use Docker and Docker Compose for your own apps. Long gone are the days of "but it works on my machine!". A bunch of follow along labs are included.
  • Build a SAAS App with Flask is a video course where we build a real world SAAS app that accepts payments, has a custom admin, includes high test coverage and goes over how to implement and apply 50+ common web app features. There's over 20+ hours of video.

Questions

  • Want to discuss this episode on Twitter? Tag @nickjanetakis or use #RunningInProduction

May 04, 2020

โœ๏ธ Edit on GitHub