Skip to content

naylin-dev/flask-flowbite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Flowbite Demo

This is a demo Flask application that integrates Flowbite for UI components. The application is designed to demonstrate how to set up a basic Flask app with Flowbite styling.

Flask app with Flowbite

Prerequisites

  • Node.js and npm (for Flowbite and Tailwind CSS)
  • uv An extremely fast Python package and project manager, written in Rust. (Recommended)
  • Python 3.12 or higher (Note: If using uv, it will automatically install Python 3.12 if not present on your system)

Setup Instructions

1. Clone the Repository

git clone https://github.com/naylin-dev/flask-flowbite.git
cd flask-flowbite

2. Creating a Virtual Environment

Using uv

uv venv --python 3.12
# On macOS/Linux
source .venv/bin/activate
# On Windows
.venv\Scripts\activate

Using venv

python3 -m venv venv
# On macOS/Linux
source venv/bin/activate
# On Windows
venv\Scripts\activate

3. Install Dependencies

Using uv

uv sync

Using pip

pip install -r requirements.txt

4. Install Node.js Dependencies

cd static
npm install

Build CSS with Tailwind

npm run build:css

5. Run the Application

# Make sure you're in the project root directory
python app.py

The application will be available at http://127.0.0.1:5000.

Project Structure

flask-flowbite/
├── app.py                  # Flask application entry point
├── pyproject.toml          # Python project configuration
├── requirements.txt        # Python dependencies
├── static/                 # Static files directory
│   ├── dist/               # Compiled assets
│   ├── src/                # Source files
│   ├── package.json        # Node.js dependencies
│   └── tailwind.config.js  # Tailwind CSS configuration
└── templates/              # HTML templates

Dependencies

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages