HyungnaLim / ITEC2905-Project3

0 stars 1 forks source link

Discover Artists!


To install and run

  1. Set environment variables:

    • Spotify:

      • Create Spotify account and login to developer site.
      • Follow instruction from API documentation to see your Client ID and Client secret.
      • Add the following environment variables to your operating system:
      • SPOTIFY_ID : Your client ID
      • SPOTIFY_SECRET : Your client secret (click 'View client secret')
    • Youtube:

      • Create a YouTube account and a YouTube API key.
      • Create an environment variable named YOUTUBE_API_KEY which will hold your key.
    • Ticketmaster:

    • Flask:

      • Create a secret key python -c 'import secrets; print(secrets.token_hex())'
      • Add the generated key to an environment variable named SESSION_KEY
  2. Create and activate a virtual environment

  3. Install required packages - pip install -r requirements.txt

  4. Run the application - python app.py

  5. App will be running on http://127.0.0.1:5000


Tests

To run tests, use this command from the root directory of the project.

python -m unittest discover tests