Giter Club home page Giter Club logo

mohidex / flask-microblog Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 630 KB

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.

Home Page: http://awesome-blogging.herokuapp.com/

License: MIT License

Python 71.82% HTML 25.93% Mako 0.82% CSS 1.44%
python3 flask herokuapp github-ci ajax elasticsearch popup markdown blog bootstrap4

flask-microblog's Introduction

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

flask-microblog's People

Contributors

dependabot[bot] avatar mohidex avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

erichuang2015

flask-microblog's Issues

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.