This project was completed as part of Python API Development - Comprehensive Course for Beginners
form freeCodeCamp
. I am tasked to make full use of FastAPI and Python knowledge and its accompanying documentation to create an APIs for social media applications.
This project was created with:
- Python
- FastAPI
- PostgreSQL
Clone the project
git clone https://github.com/SupTarr/Python-FastAPI-Template.git
To install virtualenv
via pip
py -m pip install --user virtualenv
To create a virtual environment
for your project, open a new command prompt, navigate to the folder where you want to create your project and then enter the following:
py -m virtualenv .
To activate the environment, run:
.\Scripts\activate.bat
(Python-FastAPI-Template) C:\Users\tatas\Desktop\SupTarr\Workspace\Python-FastAPI-Template>
In the command prompt, ensure your virtual environment is active, and execute the following command:
pip install -r requirements.txt
uvicorn app.main:app --reload