Giter Club home page Giter Club logo

flasky-blog's Introduction

The Flasky Blog

Description:

A simple blog built along with the Flask framework.

UI partly done with the css framework Bulma.

The app has been restructured with Blueprints for better readability.

Design choices:

  • User session management handled with Flask-Login.
  • Encryption of passwords with the Flask-Bcrypt extension.
  • Forms were created with the WTForms library.
  • SQLite Database built with the Flask-SQLAlchemy extension.
  • Email sending through Flask-Mail - 15min token generated each time requested.

Installation:

Install with pip:

$ pip install -r requirements.txt

To run the app correctly you will need to set up a couple environment variables:

  • SECRET_KEY
  • SQLALCHEMY_DATABASE_URI #i.e. "sqlite:///flasky_blog.db"
  • EMAIL_USER
  • EMAIL_PWD

Run: flask run

Application Structure

.
├── app
│   ├── articles
│   │   ├── forms.py
│   │   ├── __init__.py
│   │   ├── routes.py
│   │   └── utils.py
│   ├── categories
│   │   ├── forms.py
│   │   ├── __init__.py
│   │   └── routes.py
│   ├── config.py
│   ├── errors
│   │   ├── handlers.py
│   │   └── __init__.py
│   ├── flasky_blog.db
│   ├── __init__.py
│   ├── main
│   │   ├── __init__.py
│   │   └── routes.py
│   ├── models.py
│   ├── static
│   │   ├── article_img
│   │   ├── favicon.ico
│   │   ├── profile_img
│   │   │   ├── default.jpg
│   │   ├── script.js
│   │   └── styles.css
│   ├── templates
│   │   ├── account.html
│   │   ├── create_category.html
│   │   ├── create_post.html
│   │   ├── errors
│   │   │   ├── 403.html
│   │   │   ├── 404.html
│   │   │   └── 500.html
│   │   ├── index.html
│   │   ├── layout.html
│   │   ├── list_category.html
│   │   ├── list_post.html
│   │   ├── login.html
│   │   ├── post.html
│   │   ├── register.html
│   │   ├── reset_request.html
│   │   ├── reset_token.html
│   │   └── user.html
│   └── users
│       ├── forms.py
│       ├── __init__.py
│       ├── routes.py
│       └── utils.py
├── flasky_blog.db
├── README.md
├── requirements.txt
└── run.py

Improvements that could be done:

  • Implement a search bar
  • Let the user filter posts by categories
  • Integrate Flask-Admin to let the main admin of the blog to easily control the db

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.