Member-only story
How to Deploy Next.js, FastAPI, and PostgreSQL with Shell Scripts
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
- Full Stack Next.js, FastAPI, PostgreSQL Tutorial
- How to Build a Full Stack Next.js, FastAPI, PostgreSQL Boilerplate Tutorial
- How to Deploy Next.js, FastAPI, and PostgreSQL with Shell Scripts
- How to Develop a Full Stack Next.js, FastAPI, PostgreSQL App Using Docker
- How to Build a User Authentication Flow with Next.js, FastAPI, and PostgreSQL
- 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…