Flask Assets Bootstrap screenshot

Flask Assets Bootstrap

Author Avatar Theme by Ericdaat
Updated: 28 Feb 2022
8 Stars

A minimal Flask application with Bootstrap and Sass

Categories

Overview:

This repository is a starting point for building a web application using Python Flask and Bootstrap. Instead of importing Bootstrap from a CDN, Bootstrap is installed with npm and customized using Sass. The repository includes a minimal Flask application that displays basic text. The application module is located at application/app.py and uses static and templates folders to render content. Flask-Assets library is used to load Sass files and generate a CSS file. The CSS file is then used in Jinja templates.

Features:

  • Flask application with Bootstrap assets
  • Customizable Bootstrap using Sass
  • Uses Flask-Assets library to load Sass files and generate CSS file
  • Minimal web application with basic text display

Installation:

  1. Clone this repository.
  2. Open the terminal and navigate to the cloned repository.
  3. Run the following commands:
npm install
npm run build
python application/app.py
  1. The application should now be running locally on localhost:5000.

Summary:

This repository provides a starting point for building a web application using Flask and Bootstrap. It offers the ability to install and customize Bootstrap using Sass. The repository includes a minimal Flask application with basic text display and utilizes Flask-Assets library to load and generate CSS file.