Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1 KB

File metadata and controls

49 lines (33 loc) · 1 KB

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