/thundercast-api

Podcast API built with Laravel

Primary LanguagePHPMIT LicenseMIT

Thundercast API

Create your own Podcast API

Clone this repo

cd /your/desired/project/path
git clone https://github.com/alangodoi/thundercast-api.git

Create a database

mysql -u username -p
CREATE DATABASE databasename

Configure .env

cd /path/to/your/cloned/project/thundercast
cp .env.example .env
vim .env
Configure MySQL Connection
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=databasename
DB_USERNAME=username
DB_PASSWORD=password

Install dependencies

composer install

Run the migrations

php artisan migrate

Generate key

php artisan key:generate

How To

Insert xml feed urls into table upcomings then run the laravel command below, this will fill the tables podcasts and episodes

php artisan podcast:update
  • When you run the migrations, some urls will be added by default, see the code
Routes
GET api/upcoming
GET api/podcasts
GET api/episodes

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details