Skip to content

Repository files navigation

Booleanlists

Project for generating new Spotify Playlists with a node based logic.

Setup

  • Install and setup docker and docker compose
  • Setup your .env file. See below for details
  • Generate the API files, see below
  • Run docker-compose up

General information

This project contains a backend using NodeJs and a frontend using react. The backend uses mongodb to store data. The application uses only the Spotify authentication for user authentication.

.env

This project relies on .env files for an easy setup. The only file should have to change to take advantage of this is ./.env. Avaliable properties are:

  • CLIENT_ID The Spotify client id. See the Spotify documentation on how to get one
  • CLIENT_SECRETthe Spotify client secret. See the Spotify documentation on how to get one. Note: Make sure to never leak this to the public
  • REDIRECT_URI to where should Spotify redirect after login. Should be similar to http://localhost:3000/auth/spotify/callback
  • MONGOOSE_CONNECTION_STRING Connection string for mongodb. Currently has to have the hardcoded password like mongodb://root:example@mongodb
  • PUBLIC_URL the url, where the app is hosted
  • REACT_APP_API_BASE base url for the api
  • REACT_APP_BASE base url for the react application

api.yaml

To regenerate the api for the frontend, use the following command with swagger codegen:

java -jar swagger-codegen-cli.jar generate -i api.yaml -l typescript-fetch -o frontend/src/api -DsupportsES6=true

Or you can use this docker command to generate the files:

docker run -it -v $(pwd):/data swaggerapi/swagger-codegen-cli generate -i /data/api.yaml -l typescript-fetch -o /data/frontend/src/api -DsupportsES6=true

About

Have some fun booleanish operations on your Spotify Playlists

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages