Inspiration
Oftentimes, I am feeling a certain way that only a sentence can describe, not one emotion. Playlists never seem to be able to comfort me during this time. They seem to generic and based for someone else, not me. The Spotify DJ uses my top songs that I am sick of and jumps from emotion to emotion. I wanted to change this and allow for users to input a sentence, log into spotify, and get a playlist.
What it does
At the moment, the application allows you to login to your spotify account, receive the spotify authorization code, use the code to receive the access token, and receive information about your account. Future features will allow for users to input a sentence on how they feel and will receive a playlist on spotify with that information.
How we built it
I used React to create modular components for the front end and call the Spotify authorization url. That redirects to the request a backend API, written in express.js, which reads the code from the request, and asks for the spotify access token. After, the backend API uses the Spotify access token and authorization code to request information
Challenges we ran into
One challenge is when I received the API code, and I stored it instead of sending it immediately to the backend. This made the access code invalid, causing a lot of issues.
Accomplishments that we're proud of
I am proud of figuring out OAuth2. OAuth2 requires you to go through many authorization steps, and makes it quite trick of what it will accept. Figuring out how to send all the pieces to each other correctly was something I am proud of.
What we learned
I learned how to connect to the spotify API and honed in on my full stack application skills.
What's next for Write a Sentence, Get a Playlist
Future features will allow for users to input a sentence on how they feel and will receive a playlist on spotify with that information.
Log in or sign up for Devpost to join the conversation.