Giter Site home page Giter Site logo

utkuce / spotify-lyrics Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 66 KB

Display lyrics for the currently playing song on the connected spotify account

Home Page: https://spotify-lyrics.pages.dev/

JavaScript 79.82% HTML 16.82% CSS 3.35%
firebase spotify-web-api genius-lyrics

spotify-lyrics's Introduction

spotify-lyrics

Display lyrics for the currently playing song on the connected spotify account

Demo

https://spotify-lyrics.pages.dev/

Installation

Setup cloudflare

  • Install wrangler with npm i @cloudflare/wrangler -g
  • Login to cloudflare with wrangler login
  • Enter cloudflare account id in wrangler.toml

Configure

  • Creat an application on Spotify for Developers Dashboard and add https://<project-id>.<username>.workers.dev/callback as a redirect uri in the app settings
  • Get the your application's client_id and client_secret from your spotify developer dashboard and set them for cloudflare using
wrangler secret put SPOTIFY_CLIENT_ID <client_id>
wrangler secret put SPOTIFY_CLIENT_SECRET <client_secret>
  • Get your Genius access token from Genius and add it to the cloudflare secrets
wrangler secret put GENIUS_ACCESS_TOKEN <access_token>
  • Set REDIRECT_URI in cloudflare/index.js to https://<project-id>.<username>.workers.dev

    • or http://localhost:8787 for local testing
  • Set FRONTEND_URI in cloudflare/index.js to the static host of the public folder

  • A local copy of the api backend can be run with wrangler dev on http://localhost:8787

Deploy

  • Set up static hosting for the public/ folder
  • Deploy the backend to cloudflare with wrangler publish

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.