Giter VIP home page Giter VIP logo

spoti-art's Introduction

SpotiArt - Personalized Spotify Embedded Music Visuals

Description

SpotiArt enables users to create personalized Spotify music embeds for their favorite tracks. With seamless integration with the Spotify API, the tool fetches real-time data about the user's currently playing track and generates an embed code that can be easily added to websites, blogs, or social media platforms.

Installation

To run SpotiArt on your local machine, follow these steps:

  1. Clone the GitHub repository:
$ git clone https://github.com/your-username/SpotiArt.git
  1. Install the dependencies:
$ cd SpotiArt
$ npm install
  1. Create a MongoDB database and collection:
  • Ensure you have MongoDB installed and running locally.
  • Create a new database and name it as per your preference.
  • Inside the database, create a collection named "user_info" to store user-related data.
  1. Obtain Spotify API Credentials:
  • Go to the Spotify Developer Dashboard website.
  • Create a new Spotify app and obtain the Client ID and Client Secret.
  • Update the .env-template file with your credentials and rename it to .env.

The .env variables:

CLIENT_ID=<your_spotify_app_client_id>
CLIENT_SECRET=<your_spotify_app_client_secret>
URL=<your_website_url>
PORT=<your_website_port>
DEBUG=true

MONGODB_USERNAME=<mongodb_username>
MONGODB_PASSWORD=<mongodb_password>
MONGODB_DBNAME=<mongodb_database_name>

Endpoints

SpotiArt provides the following endpoints for users:

  • /auth: Authorizes the user to access Spotify and obtain necessary permissions.
  • /callback: Callback endpoint for /auth.
  • /currently-playing: Returns JSON data for the user's currently playing track. Use their key/username as a query parameter.
  • /embed/currently-playing: Renders an embedded page that displays the user's currently playing Spotify song with mesmerizing visuals.
  • /token: This endpoint allows users to obtain a new access token. Note that it requires the client ID and client secret as query parameters. However, it is not meant for regular users and should be accessed by developers for token management.

Running the App

To start the application, use the following command in the terminal:

$ npm run dev

Please note that SpotiArt is still under development, and some features may be subject to changes and improvements.

License

Licensed under the GPL-3.0 license.

Acknowledgments

Special thanks to the Spotify API team for providing access to their incredible platform.

Note: SpotiArt is a work in progress, I am still continuously enhancing its functionalities and user experience.

spoti-art's People

Contributors

xyugen avatar

Watchers

Kostas Georgiou avatar  avatar

spoti-art's Issues

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.