sweetbeats-backend is the server side of a playlist creator that uses the Spotify Web API and OAuth 2.0 API. The application allows the user to creator playlists based on bpm, danceability, energy, instrumentalness, and valence (musical positiveness). Users can enjoy a 30 second preview of songs in each playlist and save them to the user's Spotify account for later enjoyment. This application was created as part of Chingu Voyage 19 by team Geckos 04.
-
Clone the repository using
git clone
. -
Create a
.env
file within the root directory and include the below entries:Obtained from the Spotify Dashboard.
SPOTIFY_CLIENT_ID= SPOTIFY_CLIENT_SECRET=
FRONTEND_URI='http://localhost:3000' PASSPORT_URI='http://localhost:8888'
Obtained from the MongoDB Connect to Cluster.
MONGO_URI=
Random character for key generation and age of cookie.
COOKIE_KEY= COOKIE_AGE=
In the root directory, you can run:
Install all dependencies necessary for the project.
Runs the server in the development mode on http://locallhost:8888
.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.