Coder Social home page Coder Social logo

lance10t / minimal-db Goto Github PK

View Code? Open in Web Editor NEW

This project forked from variancedigital/minimal-db

0.0 0.0 0.0 5.19 MB

A minimal yet scalable Flask + Bootstrap 5 + PostgreSQL website

License: GNU General Public License v3.0

Shell 0.18% Python 33.05% CSS 0.22% HTML 66.44% Procfile 0.11%

minimal-db's Introduction

Minimal Flask + Boostrap 5 + PostgreSQL DB Demo Project

Overview

In this repo you'll find the source code for a small Flask + Boostrap 5 project, where data is managed via a PostgreSQL database.

The project implements Minimal+DB, a demo application featuring a gallery of cat images.

Please feel free to play with our demo, or learn more about this project (+ many other interesting things we are currently working on :) ). We will be glad if you clone the repo as a starting point for your future awesome application.

The main building bloks of Minimald+DB do showcase a nice tech stack:

  • Flask (Python) as the lightwight web server, where the business logic is coded,
  • PostgreSQL as the SQL database engine for the data,
  • Boostrap 5 as the framework for responsive layouts and UI elements.

All of the above components are FREE and OPEN SOURCE.

It is quite easy to install Minimal+DB on platforms like Azure and Heroku, and make it up and running on the Internet.

This project is built "on top" of our Minimal Project, please have a look: the repo is here, there is a working demo here, and instructions here. "Minimal" is a good starting point for any Flask project for the following reasons:

  • sound structure using Python package and Flask Blueprints;
  • well organized web page template with navbar, breadcrumbs, sticky footer;
  • modal popus, alerts, custom error pages;
  • in-site SEO friendly features;
  • last but not least, a full fledged cookie banner (with server side management).

Requirements and specifications

  • The site make use of the Flask session;
  • IMPORTANT! secrets are supposed to be retrived from config vars. Running the site locally, these values are taken from main.py. To run the site in production, one MUST setup config vars server side.

Packages needed are listed in requirements.txt

All packages needed to run this app are listed in the requirements.txt file. To install, first activate your virutal environment and then launch:

pip install -r requirements.txt

Project structure, page structure

For further explanations see the following article: https://medium.com/@rinaldo.nani/flask-bootstrap-5-starter-web-sites-1f1237a85e83

Running this site on Azure and Heroku

TODO: publish article which explains how.

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.