blogging-website
AWESOME BLOG
Published on
- Date 02/11/2020
Description
Awesome blog is a personal blogging website where you can create and share your opinions and other users can read and comment on them. The blog also has random quotes that inspire the users.
Author
- Dennis Mutai
Features
As a user of the web application you will be able to:
- See all submitted blogs
- See random quotes
- Create an account
- Log in
- Post a blog
- Comment on a blog
- See comments posted on each individual blog
- Edit your profile i.e will be able to add a short bio about yourself and a profile picture
Specification
Behaviour | Input | Output |
---|---|---|
view blog post | sign up for account | sign in |
view post | add post | submit |
all post | view more | see comments and add post |
add post | update | delete |
Known Bugs
- No current test for the application
Prerequisites
- python3.6
- virtual environment
- pip
How to access it
You can access it by cloning the Repository
$ Open Terminal (Ctrl Alt T)
$ git clone link
$ cd directory-name(MYBLOG)
$ code .
Running the Application
- Install virtual environment using $ python3.8 -m venv --without-pip virtual
- Activate virtual environment using $ source virtual/bin/activate
- Download pip in our environment using $ curl https://bootstrap.pypa.io/get-pip.py | python
- Install all the dependencies from the requirements.txt file by running python3.8 pip install -r requirements.txt
- Create os .environment file in the root of the folder and add the following code: export MAIL_USERNAME= export MAIL_PASSWORD= export SECRET_KEY= Edit the configuration instance in manage.py from development to production
- To run the application, in your terminal: $ chmod a+x start.sh $ ./start.sh
Create DB
- Create a psql databases
- CREATE DATABASE myblog;
- Create the tables and run the migrations:
- pip install flask-migrate
- python3 manage.py db init
- python3 manage.py db migrate -m "Initial Migration"
- python3 manage.py db upgrade
Technologies Used
- Python3.8
- Flask
- HTML
- Bootstrap This application is developed using Python3.6, Flask, HTML and Bootstrap
Support and Team
Dennis K.Mutai Follow me here
LICENSE AND COPYRIGHT
Mit License2020 © Dennis K.Mutai