Git Product home page Git Product logo

streamy's Introduction

Running Streamy as a Flask App

This document provides instructions on how to run a Flask app. It also includes information on creating a virtual environment to isolate the project's dependencies.

Prerequisites

Before running a Flask app, ensure that you have the following tools installed:

  • Python 3
  • Pip

Cloning the Repository

  1. Clone the Flask app repository to your local machine using the following command:
git clone <repository-url>
  1. Navigate to the cloned repository.

Creating a Virtual Environment

  1. Create a virtual environment for the project using the following command:
python -m venv venv
  1. Activate the new virtual environment:
  • For Linux/macOS:
source venv/bin/activate
  • For Windows:
venv\Scripts\activate

Installing Dependencies

  1. Install the required packages mentioned in the requirements.txt file using the following command:
pip install -r requirements.txt

Running the Flask App

  1. Run your Flask app locally using the following command:
python app.py

This will start the Flask server, and you can access your app at localhost:5000 or localhost:8000 in your web browser.

Finally to get it all running read this article to set your Spotify ID and secrets that are needed in the app.py - https://developer.spotify.com/documentation/web-api/concepts/apps.

Once you get them create a .env file and put the ID and secret there making sure to follow the naming conventions as the one described in the app.py for ID and secret.

Troubleshooting

  • If you encounter any issues, make sure that all dependencies are installed and the virtual environment is activated correctly.

streamy's People

Contributors

ayobamidele avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.