Flask Gentelella

screenshot of Flask Gentelella
flask

Flask Gentelella

Gentelella template powered by Flask

Overview:

The article provides an introduction to Flask Gentelella, a free Bootstrap admin template that integrates with Flask. It mentions the features of Flask Gentelella and provides installation instructions for running it with different databases or in a Docker container.

Features:

  • Blueprints for scalability: Flask Gentelella uses Blueprints to ensure scalability of the application.
  • flask_login for the login system: The template integrates flask_login for implementing the login system, with passwords hashed using bcrypt.
  • flask_migrate: Flask Gentelella supports flask_migrate for managing database migrations.
  • Robust CI/CD pipeline: The template comes with a comprehensive CI/CD pipeline that includes Pytest framework for testing, Travis CI for automated testing, Code coverage measurement using Coverage, and Selenium for headless Chromium testing.
  • Docker support: Flask Gentelella provides a Dockerfile for containerizing the application with Gunicorn. It also offers a Docker image on Dockerhub and integrates with the CI/CD pipeline.
  • docker-compose file: The template includes a docker-compose file to easily start Flask Gentelella with Nginx, Gunicorn, and a PostgreSQL database.

Run Flask Gentelella with a SQLite database:

  1. Get the code.
  2. Install requirements.
  3. Set the FLASK_APP environment variable.
  4. Run the application.
  5. Go to http://server_address:5000/, create an account, and log in.

Run Flask Gentelella with a PostgreSQL database (Ubuntu):

flask
Flask

Flask is a lightweight and popular web framework for Python, known for its simplicity and flexibility. It is widely used to build web applications, providing a minimalistic approach to web development with features like routing, templates, and support for extensions.

docker
Docker

A website that uses Docker for containerization to streamline development, testing, and deployment workflows. This includes features such as containerization of dependencies, automated builds and deployments, and container orchestration to ensure scalability and availability.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.