Skip to content
This repository was archived by the owner on Jun 8, 2022. It is now read-only.
/ flask-microblog Public archive

A full-featured blog application using Python Flask framework where an authenticated user can create a new post in markdown. A user can update and delete his/her post. A user can follow/unfollow other users and only see the post he/she following in his/her home page.

License

Notifications You must be signed in to change notification settings

mohidex/flask-microblog

Folders and files

NameName
Last commit message
Last commit date
Oct 24, 2019
Nov 5, 2019
Nov 5, 2019
Nov 4, 2019
Nov 2, 2019
Oct 22, 2019
Apr 7, 2020
Oct 28, 2019
Oct 27, 2019
Aug 31, 2021
Nov 5, 2019
Oct 27, 2019

Repository files navigation

Flask Microblog

A full featured blog application using 🐍 Python Flask framework where an authenticated user can create a new post in markdown. A user can update and delete his/her post. An user can follow/unfollow other user and only see the post he/she follwing in his/her home page.


Live Demo: Demo

Some Screenshot: Screenshot

Running the application

Clone the repository

git clone https://github.com/ifat-mohit/flask-microblog.git

Install virual environment and all necessary dependencies

pip install -r requirements.txt

Configure environment variables

Create a .env file in root directory

SECRET_KEY=<your-secret-key>
# Database Url
SQLALCHEMY_DATABASE_URI=<database-url>
# Server configuration
MAIL_SERVER=<your-mail-server>
MAIL_PORT=<mil-port>
MAIL_USE_TLS=<True/False>
MAIL_USERNAME=<your-mail-address>
MAIL_PASSWORD=<your-mail-password>
# Email list of admins
ADMINS=[list of admiin mail address]
# Elastic search url
ELASTICSEARCH_URL=<elastic-search-host:port>

Migrate the database

flask db upgrade

Test

python tests.py

Run

# Turn on elastic search server(Ubuntu/Debian)
sudo -i service elasticsearch start
export FLASK_DEBUG=1                  # Debug mode on
flask run 

Then visit http://localhost:5000 πŸš€ enjoy the app.

The inital code was written following Miguel Grinberg's Flask Mega Tutorial

About

A full-featured blog application using Python Flask framework where an authenticated user can create a new post in markdown. A user can update and delete his/her post. A user can follow/unfollow other users and only see the post he/she following in his/her home page.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published