An API designed to provide podcast support for the Aonsoku app.
Report Bug
·
Request Feature
For detailed information on how to use the Aonsoku Podcasts API, please refer to the API Documentation.
- PHP 8.2 or greater
- Composer
- Laravel
- Clone the repo:
git clone https://github.com/victoralvesf/aonsoku-podcasts.git
- Install dependencies:
composer install
- Copy the environment file:
cp .env.example .env
- Edit database config, if you don't want to use
sqlite
:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=YourDatabaseName
DB_USERNAME=YourUsername
DB_PASSWORD=YourPassword
- Generate application key:
php artisan key:generate
- Run database migrations:
php artisan migrate
- Start the server:
php artisan serve
Tip
If you have node.js
installed, you can run:
composer dev
This will run the server, queue, scheduler and logs in parallel.
- Starting the queue and schedule separated:
# queue
php artisan queue:listen
# schedule
php artisan schedule:work
To deploy the Aonsoku Podcasts API using Docker Compose:
- Clone the repo:
git clone https://github.com/victoralvesf/aonsoku-podcasts.git
- Copy the environment file:
cp .env.example .env.production
- Update the environment file as you need.
Caution
Ensure to fill the database settings. Example:
DB_CONNECTION=mysql
DB_HOST=mysql # needs to be mysql to work with docker compose.
DB_PORT=3306
DB_DATABASE=YourDatabaseName
DB_USERNAME=YourUsername
DB_PASSWORD=YourPassword
DB_ROOT_PASSWORD=YourRootUserPassword
# Make sure to set this to mysql aswell
DB_QUEUE_CONNECTION=mysql
Additionally, generate a key for your .env.production
file:
If you don't have access to any Laravel project, you can obtain a random key on this page:
https://laravel-encryption-key-generator.vercel.app/
Thanks to Stefan Zweifel for this helpful tool!
- Start with Docker Compose
docker compose --env-file .env.production up -d
- Refer to the
.env.example
file for a clearer understanding of the settings.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.