Git Product home page Git Product logo

flasktemplatetesting's Introduction

Flask Template With Bootstrap

This is a simple scaffold template to help you get started with Flask applications quickly.

Note: This template is not recommended for beginners, as it assumes prior knowledge of Flask.

Getting Started

To use this template in your project, follow these steps:

  1. Click the "Use This Template" button and create a new repository on GitHub.

  2. On the new repository page, provide a name for your project and create it.

  3. Copy the URL of your newly created GitHub repository and open your project folder in Visual Studio Code (assuming you've already created one).

  4. Clone the repository locally using the following command:

    git clone <repository_url>
  5. After cloning the repo, create a virtual environment. The process may differ between Windows and macOS:

    • Windows:

      python -m venv venv
    • macOS:

      python3 -m venv venv
  6. Activate the virtual environment. On Windows, use:

    venv\Scripts\activate

    On macOS, you can activate the virtual environment using a command similar to the Windows one. The command should be something like:

    source venv/bin/activate
  7. With your virtual environment activated, install the project dependencies from requirements.txt:

    pip install -r requirements.txt
  8. Ensure that your active interpreter in Visual Studio Code is set to ('venv':venv). You can check and change it by opening a .py file and locating the interpreter option in the bottom-right corner of Visual Studio Code.

  9. Now that everything should be set up correctly, run your Flask application with the following command:

    flask run --debug

    If you want to specify a different port, you can use the -p option, like this:

    flask run --debug -p 8080
  10. Thanks for using this template! Happy FlaskStrapping!

About This Template

This template provides two routes:

  • Index: The default route.
  • Contact: A route that uses a WTF form for contact information.

Feel free to customize and build your Flask application upon this template.

Please let me know if you need any further assistance or have any questions!

##Pages Home Page Preview Home Page Preview

flasktemplatetesting's People

Contributors

dylan-dot-c 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.