Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Podcast API demo

This podcast web API was put together as the demo application for the Visual Studio Code for Python Developers course at Talk Python training.

Prerequisites

Starting the API 🚀

Create virtual environment

python -m venv .venv

Activate virtual environment. VS Code should prompt you for this, but you can do this manually.

source .venv/bin/activate

Install project dependencies

python -m pip install --upgrade pip
python -m pip install .

Run the project. Using the '-g' switch will load the sample data into tinydb

python -m podcastapi -g

Running the tests 🧪

Make sure the virtual environment has been created and activated as shown above

Install test dependencies

python -m pip install .'[test]'

Run pytest

pytest