Find your next podcast.
-
Spotify Developer ClientID and Secret from Spotify Developer Dashboard
- Add callback url as
http://localhost:3000/users/auth/spotify/callback
.
- Add callback url as
-
Create .env file and update
SPOTIFY_CLIENT_ID
andSPOTIFY_SECRET_ID
with your Spotify Developer ClientID and Secret. -
Install Postgresql client for avoiding
pg
gem installation error:brew install postgresql
for Mac. -
Run the following commands to build the docker image and run the app, then run migrations with bash commands:
# Build the docker image and run the app -d for detached mode
docker-compose up
# or
docker-compose -f docker-compose.dev.yml up
# Create database if this is first setup
docker-compose run app bin/rails db:create
# Run migrations
docker-compose run app bin/rails db:migrate
# Precompile assets if needed
# bundle exec rails assets:precompile
# If tailwindcss upgraded and given an error
# bundle exec rake tailwindcss:build
You can visit http://localhost:3000 to view the app.