Skip to content
Dinith edited this page May 24, 2020 · 6 revisions

1. Can I use a MongoDB cloud instance?

  • Yes you can, in the server .env file, on a new line add DEV_DB_CONN=<your-connection-string>

2. How do I know that the server responds to requests?

  • While the server is running, open up your browser and go to localhost:3001/heartbeat
  • You should see a response as such:

Screen Shot 2020-05-24 at 5 58 12 PM

3. When trying to login, I get an "Invalid redirect URI" error. How can I fix this?

  • If you encounter this error:

Screen Shot 2020-05-24 at 5 59 53 PM

  • Ensure that the spotify URI you have registered on your application matches line 9 inside of the passport.js file in the server directory. Ensure that the server is also running on that port you have mentioned (in our case 3001)
  • For example the URI on my console:

Screen Shot 2020-05-24 at 6 02 28 PM

  • matches the URI on my passport.js file:

Screen Shot 2020-05-24 at 6 04 13 PM

4. I get a "OAuth2Strategy requires a clientID option" when trying to start the server

  • If you encounter this error:

Screen Shot 2020-05-24 at 6 07 27 PM

  • Ensure that the the SPOTIFY_CLIENT_ID and SPOTIFY_CLIENT_SECRET is set in the .env for the client.

5. I can't view statistics on certain pages :(

  • When you login and browse around the app and see empty screens (like the screenshots below), you probably do not have enough music history (i.e. you need to listen to more music!)

Screen Shot 2020-05-24 at 6 12 31 PM

Screen Shot 2020-05-24 at 6 11 39 PM

6. Top Artists Graph page is unresponsive

  • When the top artists graph load it should look like this and be responsive:

Screen Shot 2020-05-24 at 6 21 35 PM

  • However when you zoom in and out on your browser page then it could look like this:

Screen Shot 2020-05-24 at 6 23 57 PM

  • If this does happen, then refresh the page and it should be fine :)

7. How do I test the app?

Client
  • > cd client
  • > npm test
Server
  • > cd server
  • > npm test

8. Help! something is not working!

  • Feel free to contact Nisarag on his university email address (UPI) which can be found in the README or homepage of the Wiki