Giter VIP home page Giter VIP logo

playlist-generator's Introduction

Music Playlist Generator ๐ŸŽถ

Automatically create music playlists on your youtube account.

Simply enter the artist, band, or genre you would like your playlist to be based on, and use the slider to set the playlist's length.

logo

This project was built with Nextjs, Youtube data api v3, Nextauth for authentication and react-bootstrap for the UI.

Demo: https://playlist-generator-p0u4a.vercel.app

How to run locally

Installation

Clone the repository with git clone https://github.com/P0u4a/youtube-music-playlist-wizard.git

Run npm install to install dependencies

Oauth Credentials

Go to https://console.cloud.google.com/getting-started and enable the Youtube data api v3

Configure your Oauth consent screen, making sure to set the scope to https://www.googleapis.com/auth/youtube.force-ssl

Under the credentials tab, click new credentials and choose new Oauth client ID. Choose web app as the application type and set the Authorised Javascript Origins to http://localhost:3000 (assuming you are hosting on port 3000, otherwise set your own port). Then, set the Authorised redirect URI to http://localhost:3000/api/auth/callback/google.

Enviornment Variables

Inside the app's root directory, create a .env file and add the following variables:

  • CLIENT_ID
  • CLIENT_SECRET
  • NEXTAUTH_SECRET

Set CLIENT_ID and CLIENT_SECRET to the values generated when you created your Oauth credentials. Lastly, you should set NEXTAUTH_SECRET to a randomly generated value as it is used to encyrpt the JSON web tokens generated during the Oauth flow.

Running the app

Run npm run dev in the terminal and make the magic happen.

playlist-generator's People

Contributors

p0u4a avatar

Watchers

 avatar

Forkers

tronshine

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.