This is a flask web app that allows users to post blogs,users can comment on them and the owner of the post can delete user comments,update blogs and or delete blogs.Users can also enjoy random funny quotes as they read the blogs
Behaviour | Input | Output |
---|---|---|
Ability to login to your account | Login button clicked | Redirects the user to the login page |
Ability to register writer | Sign up button | Redirects the user to the sign up page |
Add blog | Post a blog button clicked in dashboard | Redirects the user to a page with a form |
Show profile | Profile button clicked | Redirects the user to his/her profile page |
Comment on a blog | Click on a blog you would like to comment | Redirects you to a commaent page |
Delete a blog | Click on the blog on your dashboard | Redirects you to an edit page. Click delete blog |
Delete a comment | Click on the blog on your dashboard | Redirects you cack to your dashboard once deleting is completed |
- Flask - For both backend and fronted
- Bootstrap
- Postgres Database
- Ensure you have Python3.6 installed in your computer. You can run:
sudo apt-get update && sudo apt-get install python3.6
to download. - Ensure you have PiP in your computer. Run
python get-pip.py
to install. - Ensure you have Pip Flask installed in your computer. Run
pip install flask-script
to install.
In a Linux terminal,
- Run
cd Desktop
- To navigate to Desktop directory. - Run
mkdir stranger-blogs-clone
- To make an empty directory.(This is where we will store stranger-blogs clone project) - Run
git clone https://github.com/dan-jugz/stranger-blogs.git
- Run
chmod a+x start.sh
- To make start.sh file executable. - Run
./start.sh
to open the app.
- photo uploads are misbehaving
Your opinion matters. Have some ideas how to improve my product?
Email - (https://njugunadaniel364@gmail.com)
Github username - dan-jugz
MIT (c) 2019 Daniel Njuguna