Skip to content

A simple Flask Template To get started quickly with Flask with bootstrap so developers don't have to do those repetitive mundane steps. With this they can get started with building their own Flasky Applications

Notifications You must be signed in to change notification settings

dylan-dot-c/Flask-Bootstrap-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple Flask Template To get started quickly with Flask with bootstrap so developers don't have to do those repetitive mundane steps. With this they can get started with building their own Flasky Applications

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published