Member-only story

How to Deploy Next.js, FastAPI, and PostgreSQL with Shell Scripts

Travis Luong
6 min readDec 6, 2021

--

In this tutorial, I will show you how to deploy a Next.js, FastAPI, and PostgreSQL stack using shell scripts. This is the continuation of a previous tutorial on how to build a Full Stack NFP Boilerplate.

Table of Contents

  1. Full Stack Next.js, FastAPI, PostgreSQL Tutorial
  2. How to Build a Full Stack Next.js, FastAPI, PostgreSQL Boilerplate Tutorial
  3. How to Deploy Next.js, FastAPI, and PostgreSQL with Shell Scripts
  4. How to Develop a Full Stack Next.js, FastAPI, PostgreSQL App Using Docker
  5. How to Build a User Authentication Flow with Next.js, FastAPI, and PostgreSQL
  6. How to Test an API with Pytest and Requests

The branch for this tutorial can be found here:

https://github.com/travisluong/nfp-boilerplate/tree/tutorial-2-how-to-deploy-nfp-boilerplate

The complete project can be found here:

https://github.com/travisluong/nfp-boilerplate

Pick a cloud provider

The first step is to pick a cloud provider. It doesn’t matter which one you pick as long as you can spin up a server running Ubuntu 20.04, as that is the OS that…

--

--

Responses (1)