- Date 02/11/2020
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.
- Dennis Mutai
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
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 |
- No current test for the application
- python3.6
- virtual environment
- pip
You can access it by cloning the Repository
$ Open Terminal (Ctrl Alt T)
$ git clone link
$ cd directory-name(MYBLOG)
$ code .
- 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 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
- Python3.8
- Flask
- HTML
- Bootstrap This application is developed using Python3.6, Flask, HTML and Bootstrap
Dennis K.Mutai Follow me here
Mit License2020 © Dennis K.Mutai