/SocialNetwork

Social Network built on Flask

Primary LanguageHTMLMIT LicenseMIT

Flask-Spotify-Social Network

License Python Flask

A social network web application built on Flask that allows users to log in via their Spotify account. The web app seamlessly integrates with Spotify's API to enable users to share their favorite music tracks, playlists, and discover new music with their friends.

Features

  • User authentication via Spotify account
  • View and follow friends' music activities
  • Share music tracks and playlists on the feed
  • Like, comment, and repost music posts
  • User profile customization
  • Search for music tracks, albums, and artists on Spotify

Installation

  1. Clone this repository to your local machine:
git clone https://github.com/dmhd6219/SocialNetwork.git
  1. Set up a virtual environment (optional but recommended):
cd SocialNetwork
python -m venv venv
source venv/bin/activate
  1. Install the required dependencies:
pip install -r requirements.txt

Configuration

To run the web application, you will need to set up a Spotify Developer account and obtain the necessary API credentials. Follow these steps:

  1. Go to the Spotify Developer Dashboard and log in with your Spotify account.
  2. Create a new application and note down the Client ID and Client Secret.
  3. In the project directory, create a new file named .env and add the following lines:
SPOTIPY_CLIENT_ID = 'your_spotify_client_id'
SPOTIPY_CLIENT_SECRET = 'your_spotify_client_secret'
SPOTIPY_REDIRECT_URI = 'http://localhost:8080/callback'  # Change this if required

Replace your_spotify_client_id and your_spotify_client_secret with the credentials obtained in step 2.

Usage

  1. Run the Flask development server:
python main.py
  1. Open your web browser and go to http://localhost:8080.

Deployment

To deploy the web app for public use, consider using platforms like Heroku, AWS, or others that support Flask applications.

Contributing

Contributions are welcome! If you want to add new features, fix bugs, or improve the existing codebase, feel free to open a pull request.

License

This project is licensed under the MIT License.


Screenshots

Profile page Weather page Music page Music Artist page Music Album page