Skip to content

vadymtsots/spotifyAPI

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages