A simple Web Social Blog. Written in Python Flask, it can be used by companies, groups, and or organizations to provide discussion and communication about their topics.
Not authenticated users can see all posts inside the blog. Logged users can create, update, delete their own posts.
Clone the repository:
git clone https://github.com/higorspinto/Social-Blog.git
All dependencies can be installed using requirements.txt.
pip install requirements.txt
The database is configured to use SQLite. All the data will be stored in a file called data.sqlite.
Flask-Migrate is an extension that handles SQLAlchemy database migrations for Flask applications. The database operations are made available through the Flask command-line interface or through the Flask-Script extension.
Windows Users need to run:
set FLASK_APP=app.py
MacOS/Linux users run:
export FLASK_APP=app.py
flask db init
flask db migrate -m "Creating the database"
flask db upgrade