Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Backend

This is a basic Flask backend project.

Requirements

  • Python 3.x
  • Flask

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/your-repo.git
    cd your-repo
  2. Create a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install the dependencies:

    pip install Flask

Running the Application

  1. Set the FLASK_APP environment variable:

    export FLASK_APP=app.py  # On Windows use `set FLASK_APP=app.py`
  2. Run the Flask application:

    flask run
  3. Open your browser and navigate to http://127.0.0.1:5000/.

Project Structure

/your-repo
│
├── app.py
├── requirements.txt
├── venv/
└── README.md

Example Code

app.py:

from flask import Flask

app = Flask(__name__)

@app.route('/')
def hello_world():
    return 'Hello, World!'

if __name__ == '__main__':
    app.run()

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages