This app provides a platform to build your own blog posts, edit them and also view other blog posts.
-
This project requires the installation of third-party libraries. We'll be using
pipto install those required packages. -
To install
pip, enter:sudo apt-get -qqy install python-pip. -
Next, we'll install the required packages provided in
requirements.txtby running:sudo pip install -r requirements.txt
-
Rename
.env-exampleto.envand make the required changes like updating the followingMYSQL_HOST = 'localhost' MYSQL_USER = 'MYSQL user' <- Change username to access database MYSQL_PASSWORD = '12345' <- Change password MYSQL_DB = 'blog' MYSQL_CURSORCLASS = 'DictCursor'
-
To configure the required database in the MySQL Database
mysql -u <username> -p < blog.sql
-
Start the app by running the following command
python app.py