Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 966 Bytes

README.md

File metadata and controls

40 lines (28 loc) · 966 Bytes

Songs App

============

Project for managing the Songs API from https://last.fm/api

After cloning the project:

  1. run composer install
  2. cp .env.example .env
  • in .env add the following keys:

  • GOOGLE_CLIENT_ID= your google client id

  • GOOGLE_CLIENT_SECRET= your google client secret

  • LASTFM_API_KEY=your lastfm API key

LASTFM_API_URL=https://ws.audioscrobbler.com/2.0/

and update the DB keys:

DB_CONNECTION=your connection DB_HOST=your host DB_PORT=your port DB_DATABASE=your DB name DB_USERNAME=your username DB_PASSWORD=your password

  1. php artisan key:generate
  2. php artisan migrate
  3. php artisan serve
  4. npm run dev

the project is ready on http://localhost:8000/

for caching some variables for avoiding calling env variables every time when services are called tha resuts in slowing down the app, run:

  • php artisan config:cache => to cache variables
  • php artisan config:clear => to clear cached variables

for testing run:

  • php artisan test