FastAPI MVC CRUD Build Setup

Setup

In this lesson, you’ll start building a FastAPI MVC CRUD application. Each subsequent lesson will add functionality to this application, so you’ll revisit this repository frequently.

1: Create the project directory

  1. Open your terminal application.
  2. Navigate to your ~/lessons directory:

    cd ~/lessons
    
  3. Create a new directory called python-fastapi-mvc-crud-build and navigate into it:

    mkdir python-fastapi-mvc-crud-build
    cd python-fastapi-mvc-crud-build
    

2: Install dependencies

  1. Use pipenv to set up a virtual environment and install the required dependencies for FastAPI and Uvicorn:

    pipenv install fastapi uvicorn
    

3: Open the Project in VS Code

  1. Open the directory in Visual Studio Code to begin working:

    code .