Deploying the site

11 views
1 hour watched
3 completions

A comprehensive guide on deploying a Flask application to Vercel, including necessary modifications, file structure, GitHub setup, and domain configuration.

Video thumbnail

Get full access

You need to subscribe to get full access to the video and lesson content.

Join 4.6K+ learners from companies like Shopify, Microsoft, Tiktok, AppSumo and Instacart.

$197
one-time payment

Deploying Flask to Vercel: A Step-by-Step Guide

Initial Research and Modifications

After some research, I discovered that it's possible to deploy Flask to Vercel, but a few changes are necessary:

  1. Caching Implementation : I've installed caching using the library recommended by ChatGPT.

  2. Removal of CSV File : Vercel doesn't allow saving files to the file system as it's read-only. Instead of using a CSV file:

    • The get_products function now caches data for 24 hours.
    • We're downloading directly into our dataframe from Google Docs.
    • Google Docs serves as a sort of database, eliminating the need for a physical CSV file.

Required...

Subscribe now to get full access to the lesson content.

Get started →