Skip to content

Latest commit

 

History

History
executable file
·
39 lines (28 loc) · 1.04 KB

README.md

File metadata and controls

executable file
·
39 lines (28 loc) · 1.04 KB

Spotify API

This project is intended to process the original responses from Spotify API into more readable way.

Prerequisites:

  • php 8.1;
  • http extension installed;

How to generate Spotify API keys:

In order to use this repo, do the following:

  • clone repository;
  • run composer install;
  • create .env file from .env.example
  • pass these Spotify keys into .env file (SPOTIFY_CLIENT_ID and SPOTIFY_CLIENT_SECRET)
  • run php artisan serve;

This is enough to use endpoints prefixed with /spotify

In order to enable search by genre functionality, do the following steps after the ones above:

  • setup Mysql database locally;
  • enter credentials in .env file;
  • run php artisan migrate;
  • run php artisan import:artists, which will import 7 example artists;

Swagger documentation:

  • path = /api/docs;
  • generate docs: php artisan l5-swagger:generate