This is a flask application that allows users to post,edit and delete blogs.It also allows the registered users to post comments on various posts.
Click this link to view the live application /
- A user can view the most recent posts.
- View and comment the blog posts on the site.
- A user should an email alert when a new post is made by joining a subscription.
- Register to be allowed to log in to the application
- A user sees random quotes on the site
- A writer can create a blog from the application and update or delete blogs I have created.
Behaviour | Input | Output |
---|---|---|
Load the page | On page load | Get all blogs, Select between signup and login |
Select SignUp | Email,Username,Password | Redirect to login |
Select Login | Username and password | Redirect to page with posted blogs |
Select comment button | Comment | Form that you input your comment |
Subscription | Email Address | Flash message is displayed |
To get the code..
- Cloning the repository:
- Move to the folder and install requirements
cd pitch-world
pip install -r requirements.txt
- Exporting Configurations
export SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://{User Name}:{password}@localhost/{database name}
- Running the application
python3.6 manage.py server
- Testing the application
python3.6 manage.py test
Open the application on your browser 127.0.0.1:5000
.
The subscription form is not working properly.
If you have any question or contributions, please email me at [pmaundu49@gmail.com]
- MIT License:
- Copyright (c) 2019 ** barack maundu**