Giter Site home page Giter Site logo

spotty's Introduction

Spotify Web Application - general information

The front-end is:

  • React 17 with Vite
  • React Router
  • Zustand
  • TailwindCSS
  • Deployed on Netlify Pages.

The Spotify authentication flow is:

  • A basic NodeJS application hosted as a Docker Image on Fly.io

The live application does not work for now, because I do not have a public Spotify API Key (if you want to test the application yourself, send me a message with your Spotify email address - requires premium - and I can add you into the application dashboard). More information below the images.

screenshot1 screenshot2

How to run this on your machine

Disclaimer: In order for the deployed application to work for every visitor, you will need an extended API quota mode from Spotify (which I don't have either). Therefore, if you want to run this application on your machine:

  • Clone this repo
  • pnpm install
  • pnpm run dev will point you to localhost:5173, unless the port is already in use.

Then, you will need:

After these steps, create an .env.production.local in the root of this application and add the VITE_BE_URL= pointing at your own server that is deployed somewhere (pnpm run build then pnpm run preview). If you just want to use it in development mode, modify the .env.development so that VITE_BE_URL= points at your own localhost, then run pnpm run dev.

You can structure your tiny server that's handling the authentication flow however you want, but I had only three endpoints (/login, /callback, /logout). As long as you follow and implement the authentication flow from Spotify properly and manage to generate your own access tokens, it should work.

spotty's People

Contributors

prozod avatar

Watchers

Kostas Georgiou avatar  avatar

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.