Giter Club home page Giter Club logo

spotifywrapped's Introduction

Spotify Top 100 Songs App

This is a simple web application that displays the top 100 songs from the Spotify API. It uses React for the frontend and an Express server for the backend to fetch and display the song data.

Features

  • Fetches the top 100 songs from the Spotify API using the user's authentication token.
  • Displays the list of songs along with their artists.
  • Provides a clean and responsive user interface.
  • Utilizes Tailwind CSS for styling.

Installation

  1. Clone the repository to your local machine:
git clone https://github.com/your-username/spotify-top-100-app.git
  1. Navigate to the project directory:
cd spotify-top-100-app
  1. Install dependencies for both the frontend and backend:
cd client
npm install

cd ../server
npm install

Configuration

  1. Create a Spotify Developer account and create a new application to obtain the client ID and client secret.

  2. Update the server/index.js file with your Spotify client ID and client secret:

const passport = require('passport');
const SpotifyStrategy = require('passport-spotify').Strategy;

// ...

passport.use(new SpotifyStrategy({
  clientID: 'YOUR_CLIENT_ID',
  clientSecret: 'YOUR_CLIENT_SECRET',
  callbackURL: 'http://localhost:4000/callback',
},
// ...
  1. Set the callback URL in your Spotify Developer Dashboard to match http://localhost:4000/callback.

Usage

  1. Start the backend server:
cd server
npm start
  1. Start the frontend development server:
cd client
npm start
  1. Visit http://localhost:3000 in your browser to see the app in action.

  2. Click on the "Login with Spotify" button to authenticate and see the list of top 100 songs.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.


Feel free to add more information to the README as needed, such as deployment instructions, troubleshooting tips, or any additional features you plan to implement.

spotifywrapped's People

Contributors

muntaqam avatar

Watchers

 avatar

spotifywrapped's Issues

handle caching

axios error when you retry the application witout clearning cache, the songs wont load

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.