codeitcaleb / podcast-player

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Table of Contents

About

The Podcast Player allows a user to choose from a fixed list of podcasts and create their own playlist by dragging a podcast over from the left list to the right list. Podcasts in the left list can be played by pressing the play button and paused by pressing it again. When podcasts are dragged over to the right list from the left list, it is removed from the the left list and added to the right list. When a user drags a podcast outside of the boundaries of the right list, it is removed from the removed from the right list and added back to the left list.

SPA Architecture and Data Flow

Podcast Player is a Single-Page Application (SPA) built in React where the data is rendered dynamically upon completion of the fetch request from the AsyncThunk in the Redux Store (in podcastSlice.js) and stored as global state. State is then updated by passing the current state, triggering the actions in the reducer (updatePlaying, updatePlaying/Podcast, reorder/updateSelectedPodcast) with the new data (action/payload). The Components connected to the store receive this new data and re-renders to display the update.

🏁 Getting Started

These instructions will get you a copy of the project up and running on your local machine.

Prerequisites

To run this application, you will need the following (if not already installed:

Installing & Starting the Application

To install the required libraries necessary to run this application, run the following command.

npm install && npm start

⛏️ Built Using

This project was bootstrapped with Create React App, using the Redux and Redux Toolkit template.

About


Languages

Language:JavaScript 84.0%Language:CSS 8.6%Language:HTML 7.3%Language:Shell 0.1%