DEV Community

Cover image for SIMPLE BLOG APP
Priscillah Nalubega
Priscillah Nalubega

Posted on

SIMPLE BLOG APP

SIMPLE BLOG APP

This is a simple blog app where users can:

  • Register and login into the app
  • See posts
  • Create posts
  • Update posts
  • And delete posts

The user can also logout of the app

Requirements

To be able to run the the program on your local machine you should have the following

note: its been tested on windows 10, python 3.9.6
  • install a virtual environment
  • install flask
  • install wtforms for the login and registration forms
  • sqlalchemy for the database
  • install bcrypt to hash the passwords

Setting up the environment

install a virtual environment on your windows machine: In your Windows command shell prompt type in:

pip install virtualenv
Enter fullscreen mode Exit fullscreen mode

Once inside the project folder run:

virtualenv <env>
Enter fullscreen mode Exit fullscreen mode

the activate your virtual environment:

.\<env>\Scripts\activate
Enter fullscreen mode Exit fullscreen mode

To Run the code

still in your virtual enviroment:

set FLASK_APP=run.py
Enter fullscreen mode Exit fullscreen mode

then

flask run
Enter fullscreen mode Exit fullscreen mode

you will now be able to explore the app on your local machine

the source code to the app is here

thanks for reading.

Top comments (0)